예제 #1
0
 public Bread Bake(BreadBuilder builder)
 {
     builder.Bread = new Bread();
     builder.SetFlour();
     builder.SetSalt();
     builder.SetAdditive();
     return(builder.Bread);
 }
예제 #2
0
 public static Bread Bake(BreadBuilder breadBuilder)
 {
     breadBuilder.CreateBread();
     breadBuilder.SetFlour();
     breadBuilder.SetSalt();
     breadBuilder.SetAdditives();
     return(breadBuilder.Bread);
 }
예제 #3
0
 public void Bake()
 {
     _builder.SetSalt();
     _builder.SetFlour();
     _builder.SetAdditives();
 }