public void CreateVehicle() { vehicleBuilder.SetVehicleType(); vehicleBuilder.SetDoors(); vehicleBuilder.SetEngine(); vehicleBuilder.SetFrame(); vehicleBuilder.SetWheels(); }
/// <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(); }