コード例 #1
0
 public Car(IVehiclePartsFactory vehiclePartsFactory)
 {
     this.vehiclePartsFactory = vehiclePartsFactory;
     this.BuildVehicle();
 }
コード例 #2
0
 public Motorcycle(IVehiclePartsFactory vehiclePartsFactory)
 {
     this.vehiclePartsFactory = vehiclePartsFactory;
     this.BuildVehicle();
 }