示例#1
0
 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);
        }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public abstract IVehicle Build(VehicleBuilder builder);