예제 #1
0
        public override Pizza1 CreatePizza(string type)
        {
            Pizza1 p = null;
            if (type == "cheese")
            {
                p = new ChicagoCheesePizza1();
            }
            else if (type == "clam")
            {
                p = new ChicagoClamPizza1();
            }

            return p;
        }
예제 #2
0
        public override Pizza1 CreatePizza(string type)
        {
            Pizza1 p = null;

            if (type == "cheese")
            {
                p = new ChicagoCheesePizza1();
            }
            else if (type == "clam")
            {
                p = new ChicagoClamPizza1();
            }

            return(p);
        }