// Builder uses a complex series of steps public void Construct(VehicleBuilder vehicleBuilder) { vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine(); vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors(); }
// Builder uses a complex series of steps public void Construct(VehicleBuilder vehicleBuilder) { this.vehicleBuilder = vehicleBuilder; this.vehicleBuilder.BuildFrame(); this.vehicleBuilder.BuildEngine(); this.vehicleBuilder.BuildWheels(); this.vehicleBuilder.BuildDoors(); }
// Builder uses a complex series of steps public void Construct(VehicleBuilder vehicleBuilder) { vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine(); vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors(); }