Пример #1
0
        protected override Pizza CreatePizza(string type)
        {
            Pizza pizza = null;

            if (type.Equals("Cheese"))
            {
                //pizza = new NYStylePizza();

                pizza = new NyPizza(new NyPizzaIngredients());
            }
            else if (type.Equals("Pepperoni"))
            {
            }
            return(pizza);
        }
Пример #2
0
        protected override Pizza CreatePizza(string type)
        {
            Pizza pizza = null;
            if (type.Equals("Cheese"))
            {
                //pizza = new NYStylePizza();

                pizza = new NyPizza(new NyPizzaIngredients());
            }
            else if(type.Equals("Pepperoni"))
            {

            }
            return pizza;
        }