public override void Print() { Console.WriteLine("\n {0}, {1} ", GetName(), GetDescription()); Console.WriteLine("---------------------"); IEnumerator <MenuComponent> iterator = menuComponents.GetEnumerator(); while (iterator.MoveNext()) { MenuComponent menuComponent = (MenuComponent)iterator.Current; menuComponent.Print(); } }
public void PrintMenu() { allMenus.Print(); }