static void Main(string[] args) { Client c = new Client("Julie"); Cashier caisse = new Cashier("Mohammed"); Cook cuisinier = new Cook("Antoine"); Waiter s = new Waiter(cuisinier, caisse, "Sylvain"); c.SeMetATable(s); Console.ReadLine(); }
//constructeur public Waiter(Cook unCuisinier, Cashier leCaissier, string n) : base(n) { this.leCaissier = leCaissier; this.monCuisinier = unCuisinier; this.nom = n; }