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

the difference with association and dependency in UML relationship?

 
Akong Gong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
who could help me?
explain the difference with association and dependency in UML relationship?
 
william kane
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Akong Gong:
Hi!
who could help me?
explain the difference with association and dependency in UML relationship?

dependency is a weaker relationship than association.Association is a structural relationship and dependency is a relationship that can last say only for a method invocation.
Ex the relationship between your DisplayPerson.jsp(a jsp used to display person details) and you Person class is a dependency where as the relationship b/w your person class and you ContactInfo class is an association.(assuming you person has a contact info)
Hope that helps
 
Akong Gong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
william kane
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!