public static void Main()
        {
            Chef someChef = new Chef();
            Bowl newBowl = someChef.Cook();

            Console.WriteLine(newBowl);
        }
示例#2
0
        /// <summary>
        /// 给厨师提交菜单

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