public Pizza orderPizza(string type) { Pizza pizza = simpleFactory.createPizza(type); pizza.prepare(); pizza.bake(); pizza.cut(); pizza.box(); return(pizza); }
public Pizza orederPizza(string type) { pizza = factory.createPizza(type); pizza.prepare(); pizza.bake(); pizza.cut(); pizza.box(); return(pizza); }
public Pizza OrderPizza(string type) { Pizza pizza = null; pizza = factory.CreatePizza(type); pizza.prepare(); pizza.bake(); pizza.cut(); pizza.box(); return(pizza); }