// Builder uses a complex series of steps public void Construct(IVehicleBuilder vehicleBuilder) { vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine(); vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors(); vehicle = vehicleBuilder.GetObject(); }
public Vehicle GetVehicle() { return(objBuilder.GetObject()); }