示例#1
0
        public Pizza orderPizza(string type)
        {
            Pizza pizza = simpleFactory.createPizza(type);

            pizza.prepare();
            pizza.bake();
            pizza.cut();
            pizza.box();
            return(pizza);
        }
示例#2
0
        public Pizza orederPizza(string type)
        {
            pizza = factory.createPizza(type);
            pizza.prepare();
            pizza.bake();
            pizza.cut();
            pizza.box();

            return(pizza);
        }
示例#3
0
        public Pizza OrderPizza(string type)
        {
            Pizza pizza = null;

            pizza = factory.CreatePizza(type);

            pizza.prepare();
            pizza.bake();
            pizza.cut();
            pizza.box();

            return(pizza);
        }