// 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(); }
public Vehicle BuildVehicle(IVehicleBuilder builder) { builder.BuildVehicle(); builder.BuildDoors(); builder.BuildEngine(); builder.BuildSeats(); builder.BuildWheels(); return(builder.GetVehicle()); }