public Pizza OrderPizza(string type) { Pizza pizza = _factory.CreatePizza(type); pizza.Prepare(); pizza.Bake(); pizza.Cut(); pizza.Box(); return(pizza); }
public Pizza OrderPizza(PizzaTypes type) { Pizza pizza = CreatePizza(type); pizza.Prepare(); pizza.Bake(); pizza.Cut(); pizza.Box(); return(pizza); }
public Pizza OrderPizza(string type) { Pizza pizza = null; pizza = CreatePizza(type); pizza.Prepare(); pizza.Back(); pizza.Cut(); pizza.Box(); return(pizza); }
static void Main(string[] args) { NYPizzaStore pizzaStore = new NYPizzaStore(); Pizza pizza = pizzaStore.CreatePizza("cheese"); pizza.Prepare(); pizza.Bake(); pizza.Cut(); pizza.Box(); Console.WriteLine(pizza.ToString()); Console.ReadKey(); }