Advertisement
fosterbl

ShoppingCartTester.java

Feb 18th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. public class ShoppingCartTester{
  2.    public static void main(String[] args) {
  3.       ShoppingCart cart = new ShoppingCart();
  4.       cart.add(new Item("bread", 3.25));
  5.       cart.add(new Item("milk", 2.50));
  6.       //cart.add(new DiscountedItem("ice cream", 4.50, 1.50));
  7.       //cart.add(new DiscountedItem("apples", 1.35, 0.25));
  8.    
  9.       cart.printOrder();
  10.    }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement