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 it VIN#.
How to best present it in a Class Diagram?
The Actual Car sounds more like an instance than a Class.
Driver<CarType> ----- 1
CarType <|---realize-- ActualCar(-vin#)
does this look right to you?
Is actual car a realization of CarType or an instance?
[ March 12, 2008: Message edited by: Abhinav Srivastava ]