//IState state; public HasQuarterState(GumballMachine gumballMachine) { this.gumballMachine = gumballMachine; //this.state = gumballMachine.State; }
public GumballMonitor(GumballMachine gumballMachine) { this.gumballMachine = gumballMachine; }
public SoldState(GumballMachine gumballMachine) { this.gumballMachine = gumballMachine; }