Example #1
0
        public override void print()
        {
            Console.WriteLine(name + " " + description);
            IEnumerator enumerator = menuComponents.GetEnumerator();

            while (enumerator.MoveNext())
            {
                MenuComponent component = (MenuComponent)enumerator.Current;
                component.print();
            }
        }
 public void printMenu()
 {
     allMenus.print();
 }