예제 #1
0
        public void test1( )
        {
            Heater  heater  = new Heater();
            Display display = new Display();
            Alarm   alarm   = new Alarm();

            //多播委托演示
            heater.RegisterMethod(display.ShowMsg);
            heater.RegisterMethod(alarm.MakeAlart);
            heater.BoilWater();
        }