static void Main(string[] args)
        {
            Client  Fred  = new Client();
            Cook    Hank  = new Cook();
            Cashier Renee = new Cashier();
            Waiter  Bob   = new Waiter(Hank, Renee);

            Fred.SeMetATable(Bob);


            Console.ReadLine();
        }
Beispiel #2
0
 public void ServeFood(Cashier leCaissier)
 {
     Console.WriteLine("Merci, A Table");
     leCaissier.Pay();
 }
Beispiel #3
0
 public Waiter(Cook unCuisinier, Cashier leCaissier)
 {
     this.unCaissier   = leCaissier;
     this.monCuisinier = unCuisinier;
 }