예제 #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;
        }