Beispiel #1
0
        // Builder uses a complex series of steps

        public void Construct(VehicleBuilder vehicleBuilder)
        {
            vehicleBuilder.BuildFrame();
            vehicleBuilder.BuildEngine();
            vehicleBuilder.BuildWheels();
            vehicleBuilder.BuildDoors();
        }
Beispiel #2
0
 public Vehicle Build(VehicleBuilder vehicle)
 {
     vehicle.BuildFrame();
     vehicle.BuildEngine();
     vehicle.BuildDoors();
     vehicle.BuildWheels();
     return(vehicle.Vehicle);
 }