public void AddItem(string name, string desc, bool isVeg, double price)
 {
     MenuItem menuItem = new MenuItem(name, desc, isVeg, price);
     if (numberOfItems >= MAX_ITEMS)
     { Console.WriteLine("Sorry, menu is full! Can't add item to menu"); }
     else
     { menuItems[numberOfItems] = menuItem; numberOfItems += 1; }
 }
 public DinnerMenuIterator(MenuItem[] items)
 {
     this.items = items;
 }
 public void AddItem(string name, string desc, bool isVeg, double price)
 {
     MenuItem menuItem = new MenuItem(name, desc, isVeg, price);
     menuItems.Add(menuItem);
 }
 public DinnerMenu()
 {
     menuItems[0] = new MenuItem("Dinner 1", 3.50); menuItems[1] = new MenuItem("Dinner 2", 4.50);
 }