コード例 #1
0
 public void BuildHouse(IHouseBuilder builder)
 {
     builder.BuildBackyard();
     builder.BuildDoors();
     builder.BuildSwimmingPool();
     builder.BuildWalls();
 }
コード例 #2
0
 public House BuildHouse(IHouseBuilder houseBuilder)
 {
     houseBuilder.BuildBackyard();
     houseBuilder.BuildSwimmingPool();
     return(houseBuilder.GetHouse());
 }