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(); }
public void ServeFood(Cashier leCaissier) { Console.WriteLine("Merci, A Table"); leCaissier.Pay(); }
public Waiter(Cook unCuisinier, Cashier leCaissier) { this.unCaissier = leCaissier; this.monCuisinier = unCuisinier; }