@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(); }
void prepare() { System.out.println("Preparing " + name); dough = ingredientFactory.createDough(); sauce = ingredientFactory.createSauce(); veggies = ingredientFactory.createVeggies(); cheese = ingredientFactory.createCheese(); potato = ingredientFactory.createPotato(); }