public Pizza createPizza(string type) { Pizza pizza = null; if (type.Equals("cheese")) pizza = new CheesePizza(); else { pizza = new VeggiePizza(); } return pizza; }