Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

derived associations ?

 
Poornachandran R
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
What is derived associations ?
Poorna
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Derived can mean implied. But it can also mean inherited.
In the context of implied, it is often referred to as tertiary association. Suppose Class Employee has an accociation with Class Supervisor and Class Supervisor has an association with Class DepartmentHead, then Class Employee has a derived association with Class DepartmentHead.
For inherited associations, consider this example. If Class Driver has an association with Class Vehicle and if Class RaceDriver inherits Class Driver and Class RaceCar inherits Class Vehicle then RaceDriver has a derived( inherited ) association with Class RaceCar.
In general, derived associations are not depicted on class diagrams because, you guessed it, they tend to clutter the diagram. However it is a good idea to show them if your business domain object model involves operations/processes that make use of derived associations.
Hope that helps!
 
Poornachandran R
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wonderful !
I got it, thanks a lot, Ajith.
Poorna
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!