Пример #1
0
 public void Construct(VehicleBuilder vehicleBuilder)
 {
     vehicleBuilder.BuildFrame();
     vehicleBuilder.BuildEngine();
     vehicleBuilder.BuildWheels();
     vehicleBuilder.BuildDoors();
 }
Пример #2
0
 public void Construct(VehicleBuilder vehicleBuilder)
 {
     vehicleBuilder.BuildFrame();
     vehicleBuilder.BuildEngine();
     vehicleBuilder.BuildWheels();
     vehicleBuilder.BuildDoors();
 }
Пример #3
0
 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();
 }
Пример #5
0
 //There may be different constructors (with different steps order)
 public void Construct(VehicleBuilder vehicleBuilder)
 {
     //класа директор определя последователността на стъпките при изграждането на колата.
     vehicleBuilder.BuildFrame();
     vehicleBuilder.BuildEngine();
     vehicleBuilder.BuildWheels();
     vehicleBuilder.BuildDoors();
 }
Пример #6
0
 public void Construct(VehicleBuilder vehicleBuilder)
 {
     // These are the steps required to build a vehicle
     vehicleBuilder.BuildFrame();
     vehicleBuilder.BuildEngine();
     vehicleBuilder.BuildWheels();
     vehicleBuilder.BuildDoors();
 }