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