コード例 #1
0
        public void Main()
        {
            Barbecuer boy  = new Barbecuer();
            Command   com1 = new BakeChikenCommand(boy);
            Command   com2 = new BakeChikenCommand(boy);
            Waiter    girl = new Waiter();

            girl.SetOrder(com1);
            girl.SetOrder(com2);
            girl.Execute();
        }
コード例 #2
0
 public void Main()
 {
     Barbecuer boy=new Barbecuer();
     Command com1=new BakeChikenCommand(boy);
     Command com2=new BakeChikenCommand(boy);
     Waiter girl=new Waiter();
     girl.SetOrder(com1);
     girl.SetOrder(com2);
     girl.Execute();
 }