public Pizza OrderPizza(string type)
        {
            Pizza pizza = null;

            pizza = CreatePizza(type);

            pizza.Prepare();
            pizza.Back();
            pizza.Cut();
            pizza.Box();
            return(pizza);
        }
Exemple #2
0
        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();
        }