// portland-style preparation for all pizzas protected override Pizza CreatePizza(string type) { Pizza pizza = null; if (type == "Cheese") pizza = new PortlandStyleCheesePizza(); else if (type == "Clam") pizza = new PortlandStyleClamPizza(); else if (type == "Suede") pizza = new PortlandStyleShoePizza(); return pizza; }
// portland-style preparation for all pizzas protected override Pizza CreatePizza(string type) { Pizza pizza = null; if (type == "Cheese") { pizza = new PortlandStyleCheesePizza(); } else if (type == "Clam") { pizza = new PortlandStyleClamPizza(); } else if (type == "Suede") { pizza = new PortlandStyleShoePizza(); } return(pizza); }