Beispiel #1
0
 public void CreateVehicle()
 {
     vehicleBuilder.SetVehicleType();
     vehicleBuilder.SetDoors();
     vehicleBuilder.SetEngine();
     vehicleBuilder.SetFrame();
     vehicleBuilder.SetWheels();
 }
Beispiel #2
0
 /// <summary>
 /// Construct returns nothing, another variant when Construct return constructed object
 /// </summary>
 /// <param name="builder"></param>
 public void Construct(IVehicleBuilder builder)
 {
     builder.SetColor("Red");
     builder.SetWheels();
     builder.SetType();
 }