protected override Pizza CreatePizza(string type) { Pizza pizza = null; if (type.Equals("Cheese")) { //pizza = new NYStylePizza(); pizza = new NyPizza(new NyPizzaIngredients()); } else if (type.Equals("Pepperoni")) { } return(pizza); }
protected override Pizza CreatePizza(string type) { Pizza pizza = null; if (type.Equals("Cheese")) { //pizza = new NYStylePizza(); pizza = new NyPizza(new NyPizzaIngredients()); } else if(type.Equals("Pepperoni")) { } return pizza; }