Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            DinerMenu dinerMenu = new DinerMenu();

            dinerMenu.AddMenuItem("aaa", "a-1,a-2", true, 2.99);
            dinerMenu.AddMenuItem("bbb", "b-1,b-2", false, 2.99);

            PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu();

            pancakeHouseMenu.AddMenuItem("ccc", "c-1,c-2", true, 2.99);
            pancakeHouseMenu.AddMenuItem("ddd", "d-1,d-2", false, 2.99);


            Waitress waitress = new Waitress(dinerMenu, pancakeHouseMenu);

            waitress.PrintMenu();
        }
Ejemplo n.º 2
0
 public Waitress(DinerMenu dinerMenus, PancakeHouseMenu pancakeHouseMenus)
 {
     this.dinerMenu        = dinerMenus;
     this.pancakeHouseMenu = pancakeHouseMenus;
 }