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

        public void Construct(VehicleBuilder vehicleBuilder)
        {
            vehicleBuilder.BuildFrame();
            vehicleBuilder.BuildEngine();
            vehicleBuilder.BuildWheels();
            vehicleBuilder.BuildDoors();
        }
Esempio n. 2
0
 // Builder uses a complex set of  steps.
 public void Build(VehicleBuilder vehicleBuilder)
 {
     vehicleBuilder.BuildFrames();
     vehicleBuilder.BuildEngine();
     vehicleBuilder.BuildWheels();
     vehicleBuilder.BuildDoors();
     vehicleBuilder.BuildPowerWindow();
     vehicleBuilder.BuildSmartLock();
     vehicleBuilder.BuildAirbags();
 }