Exemple #1
0
        static void Main(string[] args)
        {
            PancakeHouseMenu pancake  = new PancakeHouseMenu();
            DinerMenu        diner    = new DinerMenu();
            CafeMenu         cafe     = new CafeMenu();
            Waitress         waitress = new Waitress(pancake, diner, cafe);

            waitress.PrintMenu();
        }
Exemple #2
0
 public Waitress(PancakeHouseMenu pancake, DinerMenu diner, CafeMenu cafe)
 {
     pancakeHouseMenu = pancake;
     dinerMenu        = diner;
     cafeMenu         = cafe;
 }