예제 #1
0
        static void DoIterator()
        {
            DinerMenu        dinerMenu        = new DinerMenu();
            PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu();

            Waitress waitress = new Waitress(pancakeHouseMenu, dinerMenu);

            waitress.printMenu();
        }
예제 #2
0
 public Waitress(PancakeHouseMenu pancakeHouseMenu, DinerMenu dinerMenu)
 {
     this.pancakeHouseMenu = pancakeHouseMenu;
     this.dinerMenu        = dinerMenu;
 }