public ChichenWinCommond(Barbecue receiver) : base(receiver) { }
public Shaokao(Barbecue receiver) { this.receiver = receiver; }
public SheepCommond(Barbecue receiver) : base(receiver) { }
static void Main(string[] args) { Barbecue cr = new Barbecue(); Shaokao c1 = new ChichenWinCommond(cr); Shaokao c2 = new SheepCommond(cr); Waiter w = new Waiter(); w.SetOrder(c1); w.SetOrder(c2); w.Notify(); }