public override Pizza CreatePizza(string typeOfPizza) { Pizza pizza = null; switch (typeOfPizza.ToLower()) { case "peperoni": pizza = new Peperoni("Peperoni", "with mixture of beef, chicken and pork"); break; case "hawaii ": pizza = new Hawaii("Hawaii", "with ham and pineapple"); break; case "margherita": pizza = new Margherita("Margherita", "with tomatoes, mozzarella , olive oil and basil"); break; default: Console.WriteLine("This pizza is missing from the menu"); break; } return(pizza); }
public override Pizza CreatePizza(string typeOfPizza) { Pizza pizza = null; switch (typeOfPizza.ToLower()) { case "diabola": pizza = new Diabola("Diabola", "with salami and hot Calabrian pepper."); break; case "hawaii ": pizza = new Hawaii("Hawaii", "with ham and pineapple"); break; case "margherita": pizza = new Margherita("Margherita", "with tomatoes, mozzarella , olive oil and basil"); break; default: Console.WriteLine("This pizza is missing from the menu"); break; } return(pizza); }