static void Main(string[] args) { //Instanciation du personnel et du client Client fred = new Client("Fred"); Cook hank = new Cook("Hank"); Cashier renee = new Cashier("Renée"); Waiter bob = new Waiter(hank, renee, "Bob"); //Utilisation de la méthode SeatAtTable fred.SeatAtTable(bob); Console.ReadLine(); }
public void AddCook(Cook cook) { cooks.Add(cook); }
public Waiter(string n, Cook unCuisinier, Cashier leCaissier) : base(n) { this.leCaissier = leCaissier; this.monCuisinier = unCuisinier; }