public void Construct(VehicleBuilder builder) { builder.BuildFrame(); builder.BuildEngine(); builder.BuildDoors(); builder.BuildWheels(); }
/// <summary> /// /// </summary> /// <param name="builder"></param> /// <returns></returns> public override IVehicle Build(VehicleBuilder builder) { builder.BuildChassis(); builder.BuildBody(); builder.BuildPassengerArea(); builder.BuildWindows(); return(builder.Vehicle); }
/// <summary> /// /// </summary> /// <returns></returns> public abstract IVehicle Build(VehicleBuilder builder);