aboutsummaryrefslogtreecommitdiff
path: root/Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java
diff options
context:
space:
mode:
authorCamil Staps2015-06-11 10:41:24 +0200
committerCamil Staps2015-06-11 10:41:24 +0200
commit404f54c41b645a77d4f451d0bcaa39a4a0ae4e37 (patch)
tree51b4f75e798f0ca1678b5f5a09ac21136b3daba7 /Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java
parentWorking on w16 (diff)
Finish w16
Diffstat (limited to 'Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java')
-rw-r--r--Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java b/Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java
index ec2f6e5..6772ada 100644
--- a/Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java
+++ b/Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java
@@ -3,6 +3,11 @@
*/
package com.camilstaps.webshop;
+import com.camilstaps.webshop.article.WashingMachine;
+import com.camilstaps.webshop.article.WaterMelon;
+import com.camilstaps.webshop.article.WineGlass;
+import com.camilstaps.webshop.payment.PayPal;
+
/**
*
* @author camilstaps
@@ -13,7 +18,13 @@ public class Week16Webshop {
* @param args the command line arguments
*/
public static void main(String[] args) {
- // TODO code application logic here
+ Cart cart = new Cart();
+ cart.add(new WaterMelon());
+ cart.add(new WaterMelon());
+ cart.add(new WineGlass());
+ cart.add(new WashingMachine());
+ cart.setPaymentMethod(new PayPal("info@camilstaps.nl", "secret"));
+ cart.pay();
}
}