public void Construct(VehicleBuilder vehicleBuilder) { vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine(); vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors(); }
public void CreateVehicle(VehicleBuilder builder) { builder.BuildFrame(); builder.BuildEngine(); builder.BuildWheels(); builder.BuildDoors(); }
// Builder uses a complex series of steps public static void Construct(VehicleBuilder vehicleBuilder) { //一か所にまとめておくことも可能。 vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine(); vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors(); }
//There may be different constructors (with different steps order) public void Construct(VehicleBuilder vehicleBuilder) { //класа директор определя последователността на стъпките при изграждането на колата. vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine(); vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors(); }
public void Construct(VehicleBuilder vehicleBuilder) { // These are the steps required to build a vehicle vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine(); vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors(); }