コード例 #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
ファイル: PotatoPizza.java プロジェクト: twinkim1/j2_
 void prepare() {
   System.out.println("Preparing " + name);
   dough = ingredientFactory.createDough();
   sauce = ingredientFactory.createSauce();
   veggies = ingredientFactory.createVeggies();
   cheese = ingredientFactory.createCheese();
   potato = ingredientFactory.createPotato();
 }