public override void prepare() { Console.WriteLine("Preparing " + name); dough = ingredientFactory.createDough(); sauce = ingredientFactory.createSauce(); cheese = ingredientFactory.createCheese(); }
public override void prepare() { Console.WriteLine("Preparing " + getName()); dough = ingredientFactory.createDough(); sauce = ingredientFactory.createSauce(); cheese = ingredientFactory.createCheese(); pepperoni = ingredientFactory.createPepperoni(); }
public override void Prepare() { Console.WriteLine("Preparing" + name); dough = pizzaIngredientsFactory.createDough(); sauce = pizzaIngredientsFactory.createSauce(); cheese = pizzaIngredientsFactory.createChesse(); clam = pizzaIngredientsFactory.createClam(); }