blob: 6772ada4f01fc4fa20eabc93432513e5edf54528 (
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;
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
*/
public class Week16Webshop {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
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();
}
}
|