public Driver(CarFactory carFactory) { CarFactory = carFactory; SportsCar = CarFactory.CreateSportsCar(); FamilyCar = CarFactory.CreateFamilyCar(); }