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(); }
public Waiter(Cook leCuisinier, Cashier leCaissier, string nom) : base(nom) { this.monCuisinier = leCuisinier; this.leCaissier = leCaissier; }
public void ServeFood(Cashier leCaissier) { //JeMange leCaissier.Pay(); }
public void ServeWine(Cashier leCaissier) { leCaissier.Pay(); }