예제 #1
0
        protected override Pizza.Pizza CreatePizza(string type)
        {
            Pizza.Pizza pizza = null;
            if (type.Equals("シンプル"))
            {
                pizza = new ChicagoStyleSimplePizza();
            }
            else if (type.Equals("チーズ"))
            {
                pizza = new ChicagoStyleCheesePizza();
            }

            return(pizza);
        }
예제 #2
0
 public Pine(Pizza.Pizza pizza)
 {
     _pizza = pizza;
 }
예제 #3
0
 public Sauce(Pizza.Pizza pizza)
 {
     _pizza = pizza;
 }
예제 #4
0
 public Cheese(Pizza.Pizza pizza)
 {
     _pizza = pizza;
 }
예제 #5
0
 public Meat(Pizza.Pizza pizza)
 {
     _pizza = pizza;
 }