I have a Driver class which must know the “Type” of car it can drive. And then it must also be assigned an Actual Car to drive. The car must of course be of the same “Type”.
e.g. Type of car can be Mustang and a car is identified by its VIN#.
How to best present it in a Class Diagram?
The Actual Car sounds more like an instance than a Class.
<CarType> ----- 1 CarType <|—realize-- ActualCar(-vin#)
does this look right to you?
Is actual car a realization of CarType or an instance?
How best this can be presented in a class diagram?