public Driver(CarFactory carFactory) { _sportsCar = carFactory.CreateSportsCar(); _familyCar = carFactory.CreateFamilyCar(); }
public Client(CarFactory carFactory) { sportsCar = carFactory.CreateSportsCar(); suv = carFactory.CreateSUV(); }