Ejemplo n.º 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);
        }
Ejemplo n.º 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;
        }