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