Пример #1
0
        static void Main(string[] args)
        {
            Cashier Renée = new Cashier("Renée");
            Cook    Hank  = new Cook("Hank");

            Waiter Bob  = new Waiter(Hank, Renée, "Bob");
            Client Fred = new Client("Fred");

            Fred.SeatAtTable(Bob);
            Console.ReadLine();
        }
Пример #2
0
 public Waiter(Cook leCuisinier, Cashier leCaissier, string nom) : base(nom)
 {
     this.monCuisinier = leCuisinier;
     this.leCaissier   = leCaissier;
 }
Пример #3
0
 public void ServeFood(Cashier leCaissier)
 {
     //JeMange
     leCaissier.Pay();
 }
Пример #4
0
 public void ServeWine(Cashier leCaissier)
 {
     leCaissier.Pay();
 }