Advertisement
aneliyanestorova

Shoppingcard

Jun 13th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. package com.telerikacademy.cosmetics.models.cart;
  2.  
  3. import com.telerikacademy.cosmetics.models.products.Product;
  4. import sun.reflect.generics.reflectiveObjects.NotImplementedException;
  5.  
  6. import java.util.ArrayList;
  7. import java.util.List;
  8.  
  9. public class ShoppingCart {
  10. private List<Product> productList;
  11.  
  12. public ShoppingCart() {
  13. productList = new ArrayList<Product>();
  14. }
  15.  
  16. public List<Product> getProductList() {
  17.  
  18. return new ArrayList<>(productList);
  19. }
  20.  
  21. public void addProduct(Product product) {
  22.  
  23. //throw new NotImplementedException();
  24. }
  25.  
  26. public void removeProduct(Product product) {
  27. //throw new NotImplementedException();
  28. }
  29.  
  30. public boolean containsProduct(Product product) {
  31. //throw new NotImplementedException();
  32. return true;
  33. }
  34.  
  35.  
  36. public double totalPrice() {
  37.  
  38.  
  39. throw new NotImplementedException();
  40.  
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement