Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ShoppingCartTester{
- public static void main(String[] args) {
- ShoppingCart cart = new ShoppingCart();
- cart.add(new Item("bread", 3.25));
- cart.add(new Item("milk", 2.50));
- //cart.add(new DiscountedItem("ice cream", 4.50, 1.50));
- //cart.add(new DiscountedItem("apples", 1.35, 0.25));
- cart.printOrder();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement