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