static void Main(string[] args) { IceRocket ice = new IceRocket(); ice.Eat(); Console.WriteLine("************************"); Magnum magnum = new Magnum(MagnumIce.MilkChocolate); magnum.Eat(); Console.WriteLine("************************"); Cone cone = new Cone(Flavor.Banana); cone.Eat(); Console.ReadKey(); Console.WriteLine("***************************"); Magnum magnum1 = new Magnum(MagnumIce.RomanticStrawberries); magnum.Eat(); Cone cone1 = new Cone(Flavor.Mokka); cone1.Eat(); }
static void Main(string[] args) { IceRocket ice = new IceRocket(); ice.Eat(); Console.WriteLine("------------------"); Magnum magnum = new Magnum(MagnumIce.RomanticStrawberries); magnum.Eat(); Console.WriteLine("------------------"); Magnum magnum1 = new Magnum(MagnumIce.AlpineNuts); magnum1.Eat(); Console.WriteLine("------------------"); Cone cone = new Cone(Flavor.Banana); cone.Eat(); Console.WriteLine("------------------"); Cone cone1 = new Cone(Flavor.Strawberry); cone1.Eat(); }