From 404f54c41b645a77d4f451d0bcaa39a4a0ae4e37 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 11 Jun 2015 10:41:24 +0200 Subject: Finish w16 --- .../src/com/camilstaps/webshop/Week16Webshop.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Week16 Webshop/src/com/camilstaps/webshop/Week16Webshop.java') 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(); } } -- cgit v1.2.3