Exemplo n.º 1
0
 public CarsCreation(CarFactory factory)
 {
     this.luxuryCar = factory.CreatelLuxuryCar();
     this.sportCar  = factory.CreatesSportsCar();
     this.jeepCar   = factory.CreateJeepCar();
 }
Exemplo n.º 2
0
 public Factory(FamilyCar familyCar, SportCar sportCar)
 {
     _familyCar = familyCar;
     _sportCar  = sportCar;
 }