Ejemplo n.º 1
0
 public VehicleFactory(ICarFactory carFactory, IMotorcycleFactory motorcycleFactory, ITruckFactory truckFactory)
 {
     this.carFactory        = carFactory;
     this.motorcycleFactory = motorcycleFactory;
     this.truckFactory      = truckFactory;
 }
Ejemplo n.º 2
0
 public VehicleFactory(ICarFactory carFactory, IMotorcycleFactory motorcycleFactory, ITruckFactory truckFactory)
 {
     this.carFactory = carFactory;
     this.motorcycleFactory = motorcycleFactory;
     this.truckFactory = truckFactory;
 }