static void Main(string[] args)
        {
            var gumballmachine = new UpgradedGumballMachine(150, "New York");
            var monitor        = new GumballMonitor(gumballmachine);

            monitor.Report();
        }
示例#2
0
 public GumballMonitor(UpgradedGumballMachine gumballMachine)
 {
     this.gumballMachine = gumballMachine;
 }