diff options
Diffstat (limited to 'Week16 Webshop/src/com/camilstaps/webshop/article/WaterMelon.java')
| -rw-r--r-- | Week16 Webshop/src/com/camilstaps/webshop/article/WaterMelon.java | 21 | 
1 files changed, 21 insertions, 0 deletions
diff --git a/Week16 Webshop/src/com/camilstaps/webshop/article/WaterMelon.java b/Week16 Webshop/src/com/camilstaps/webshop/article/WaterMelon.java new file mode 100644 index 0000000..0cdf1d4 --- /dev/null +++ b/Week16 Webshop/src/com/camilstaps/webshop/article/WaterMelon.java @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2015 Camil Staps + */ +package com.camilstaps.webshop.article; + +/** + * + * @author camilstaps + */ +public class WaterMelon extends Article { + +    public WaterMelon() { +        super("Watermelon", 4.5); +    } + +    @Override +    public double getShippingCosts() { +        return 6.75; +    } +     +}  | 
