Exemplo n.º 1
0
        override public Pizza CreatePizza(string type)
        {
            Pizza p = null;

            switch (type)
            {
            case "Peperoni":
                p = new PeperoniPizza(idf);
                break;

            case "Cheese":
                p = new CheesePizza(idf);
                break;

            case "Clam":
                p = new ClamPizza(idf);
                break;
            }
            return(p);
        }