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