using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cook
{
//顾客类
public class Client
{
/// <summary>
/// 点菜
/// </summary>
public void Order(Waitress waitress,Order order)
{
Console.WriteLine("顾客开始点菜:{0}!", order.mealList);
waitress.GetOrder(order);
}
/// <summary>
/// 用餐
/// </summary>
public void Eat()
{
Console.WriteLine("客人用餐!");
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cook
{
/// <summary>
/// 服务员类
/// </summary>
public class Waitress
{
private Order order;
/// <summary>
/// 记录客人的点餐
/// </summary>
/// <p