aboutsummaryrefslogtreecommitdiff
path: root/Week16 Webshop/src/com/camilstaps/webshop/article/Article.java
diff options
context:
space:
mode:
Diffstat (limited to 'Week16 Webshop/src/com/camilstaps/webshop/article/Article.java')
-rw-r--r--Week16 Webshop/src/com/camilstaps/webshop/article/Article.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/Week16 Webshop/src/com/camilstaps/webshop/article/Article.java b/Week16 Webshop/src/com/camilstaps/webshop/article/Article.java
new file mode 100644
index 0000000..c0e53e5
--- /dev/null
+++ b/Week16 Webshop/src/com/camilstaps/webshop/article/Article.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2015 Camil Staps
+ */
+package com.camilstaps.webshop.article;
+
+/**
+ *
+ * @author camilstaps
+ */
+public abstract class Article {
+
+ protected final String description;
+ protected final double price;
+
+ public Article(String description, double price) {
+ this.description = description;
+ this.price = price;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public double getPrice() {
+ return price;
+ }
+
+ public abstract double getShippingCosts();
+
+}