Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package tp_pbo_mod3_if.pkg42.pkg04_1301180006;
- /**
- *
- * @author ASUS
- */
- public class Costumer_1301180006 {
- private String name_1301180006;
- private Cart_1301180006 cart_1301180006;
- public Costumer_1301180006(String name_1301180006){
- this.name_1301180006 = name_1301180006;
- }
- public String getName_1301180006() {
- return name_1301180006;
- }
- public void createCart_1301180006(String date_1301180006, int maxProd_1301180006){
- cart_1301180006 = new Cart_1301180006(date_1301180006, maxProd_1301180006);
- }
- public void addProduct_1301180006(Product_1301180006 prod_1301180006){
- cart_1301180006.addProduct_1301180006(prod_1301180006);
- }
- public void showCart_1301180006(){
- System.out.println(getName_1301180006());
- System.out.println(cart_1301180006.getDate_1301180006());
- cart_1301180006.display_1301180006();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement