Example #1
0
 // Builder uses a complex series of steps
 public void Construct(IVehicleBuilder vehicleBuilder)
 {
     vehicleBuilder.BuildFrame();
     vehicleBuilder.BuildEngine();
     vehicleBuilder.BuildWheels();
     vehicleBuilder.BuildDoors();
 }
 public void Construct(IVehicleBuilder builder)
 {
     builder.BuildFrame();
     builder.BuildEngine();
     builder.BuildWheels();
     builder.BuildDoors();
 }
Example #3
0
 public Vehicle BuildVehicle(IVehicleBuilder builder)
 {
     builder.BuildVehicle();
     builder.BuildDoors();
     builder.BuildEngine();
     builder.BuildSeats();
     builder.BuildWheels();
     return(builder.GetVehicle());
 }