protected Command(Barbecuer barbecuer) { this.receiver = barbecuer; }
public BakeChikenCommand(Barbecuer barbecure) : base(barbecure) { this.receiver = barbecure; }
static void Main(string[] args) { 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(); Console.ReadKey(); }