Ejemplo n.º 1
0
        // Builder uses a complex series of steps

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