Пример #1
0
        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();
        }
Пример #2
0
 public void AddCook(Cook cook)
 {
     cooks.Add(cook);
 }
Пример #3
0
 public Waiter(string n, Cook unCuisinier, Cashier leCaissier)
     : base(n)
 {
     this.leCaissier   = leCaissier;
     this.monCuisinier = unCuisinier;
 }