예제 #1
0
 @Override
 void prepare() {
   System.out.println("Preparing " + name);
   dough = ingredientFactory.createDough();
   cheese = ingredientFactory.createCheese();
   clam = ingredientFactory.createClam();
 }
예제 #2
0
 @Override
 void prepare() {
   System.out.println(String.format("Preparing %s", name));
   dough = ingredientFactory.createDough();
   sauce = ingredientFactory.createSauce();
   cheese = ingredientFactory.createCheese();
 }
예제 #3
0
 void prepare() {
   System.out.println("Preparing " + name);
   dough = ingredientFactory.createDough();
   sauce = ingredientFactory.createSauce();
   veggies = ingredientFactory.createVeggies();
   cheese = ingredientFactory.createCheese();
   potato = ingredientFactory.createPotato();
 }