コード例 #1
0
 public override void prepare()
 {
     Console.WriteLine("Preparing " + name);
     dough  = ingredientFactory.createDough();
     sauce  = ingredientFactory.createSauce();
     cheese = ingredientFactory.createCheese();
 }
コード例 #2
0
 public override void prepare()
 {
     Console.WriteLine("Preparing " + getName());
     dough     = ingredientFactory.createDough();
     sauce     = ingredientFactory.createSauce();
     cheese    = ingredientFactory.createCheese();
     pepperoni = ingredientFactory.createPepperoni();
 }