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); }
public Pine(Pizza.Pizza pizza) { _pizza = pizza; }
public Sauce(Pizza.Pizza pizza) { _pizza = pizza; }
public Cheese(Pizza.Pizza pizza) { _pizza = pizza; }
public Meat(Pizza.Pizza pizza) { _pizza = pizza; }