Visual Paradigm Logo
     Build Quality Applications Faster, Better and Cheaper
 
Home | Products | Download | Documentation | Support | Resources | Partners | Quick Tour | Shop | Company |  
 
   Visual Paradigm Discussion Forum
  Login   [ Register ] Email: Password: Log me on automatically I lost my password  
Recent Topics
Advanced Search
instance and type of instance in a class diagram  
Forum Index -> UML Questions
Author Message
Anonymous

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.

Driver<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?
 
 
   Forum Index -> UML Questions
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil