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