public Dispenser(GumContainer container) { this.gumContainer = container; }
public GumMachine(bool isFull, bool handleTurned) { this.container = new GumContainer(isFull, 14, 7, 11, 10, 8, 5); this.dispencer = new Dispenser(this.Container); this.handle = new Handle(handleTurned); }