예제 #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
파일: Waiter.cs 프로젝트: DanBonix/SIO
 public Waiter(string n, Cook unCuisinier, Cashier leCaissier)
     : base(n)
 {
     this.leCaissier   = leCaissier;
     this.monCuisinier = unCuisinier;
 }