aboutsummaryrefslogtreecommitdiff
path: root/Week16 Webshop/src/com/camilstaps/webshop/article/Article.java
blob: c0e53e5aeab6ea1fd25e3686148489f93316d874 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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();
    
}