public PayMoney(VendingMachineState obj) { Vendor = obj.Vendor; AmountPaid = obj.AmountPaid; selecteditem = obj.selecteditem; }
public VendingMachine() { currentState = new Selectproduct(this); }
public GetPrice(VendingMachineState obj) { Vendor = obj.Vendor; selecteditem = obj.selecteditem; }