示例#1
0
        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();
        }
示例#2
0
 //constructeur
 public Waiter(Cook unCuisinier, Cashier leCaissier, string n) : base(n)
 {
     this.leCaissier   = leCaissier;
     this.monCuisinier = unCuisinier;
     this.nom          = n;
 }