public static void Main() { Chef someChef = new Chef(); Bowl newBowl = someChef.Cook(); Console.WriteLine(newBowl); }
/// <summary> /// 给厨师提交菜单 /// </summary> ///<param name="client">点菜顾客的对象</param> public void SendOrder(Chef chef) { Console.WriteLine("服务员将菜{0}传给厨师", order.mealList); chef.GetOrder(order); }