Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package tp_pbo_mod3_if.pkg42.pkg04_1301180006;
  7.  
  8. /**
  9. *
  10. * @author ASUS
  11. */
  12. public class Costumer_1301180006 {
  13. private String name_1301180006;
  14. private Cart_1301180006 cart_1301180006;
  15.  
  16. public Costumer_1301180006(String name_1301180006){
  17. this.name_1301180006 = name_1301180006;
  18. }
  19.  
  20. public String getName_1301180006() {
  21. return name_1301180006;
  22. }
  23.  
  24. public void createCart_1301180006(String date_1301180006, int maxProd_1301180006){
  25. cart_1301180006 = new Cart_1301180006(date_1301180006, maxProd_1301180006);
  26. }
  27.  
  28. public void addProduct_1301180006(Product_1301180006 prod_1301180006){
  29. cart_1301180006.addProduct_1301180006(prod_1301180006);
  30. }
  31.  
  32. public void showCart_1301180006(){
  33. System.out.println(getName_1301180006());
  34. System.out.println(cart_1301180006.getDate_1301180006());
  35. cart_1301180006.display_1301180006();
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement