static void Main(string[] args) { //创建两个厨师 Cook cook = new Cook("张大厨师"); Cook cook2 = new Cook("王厨"); //点张大厨师做一道烤鱼 CookingCommand fish = new CookingFishCommand(cook); //点王厨做一道特色豆腐 CookingCommand tofu = new CookingTofuCommand(cook2); //创建服务员 Waiter waiter = new Waiter("晓丽"); //服务员帮客户点餐 waiter.StartOrder(fish); waiter.StartOrder(tofu); //点餐完毕 开始下单 waiter.StartCook(); Console.ReadLine(); }