예제 #1
0
        // hillsboro-style preparation for all pizzas
        protected override Pizza CreatePizza(string type)
        {
            Pizza pizza = null;

            if (type == "Cheese")
                pizza = new HillsboroStyleCheesePizza();
            else if (type == "Clam")
                pizza = new HillsboroStyleClamPizza();
            else if (type == "Suede")
                pizza = new HillsboroStyleShoePizza();

            return pizza;
        }
        // hillsboro-style preparation for all pizzas
        protected override Pizza CreatePizza(string type)
        {
            Pizza pizza = null;

            if (type == "Cheese")
            {
                pizza = new HillsboroStyleCheesePizza();
            }
            else if (type == "Clam")
            {
                pizza = new HillsboroStyleClamPizza();
            }
            else if (type == "Suede")
            {
                pizza = new HillsboroStyleShoePizza();
            }

            return(pizza);
        }