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

            if (type == "cheese")
            {
                p = new NewYorkCheesePizza1();
            }
            else if (type == "clam")
            {
                p = new NewYorkClamPizza1();
            }

            return(p);
        }
Ejemplo n.º 2
0
        public override Pizza1 CreatePizza(string type)
        {
            Pizza1 p = null;
            if (type == "cheese")
            {
                p = new NewYorkCheesePizza1();
            }
            else if (type == "clam")
            {
                p = new NewYorkClamPizza1();
            }

            return p;
        }