OOAD Functions Q/A #4


Question:Differentiate between link and association.

Answer:

Sr. No.LinkAssociation
1A link is a physical connection between objects like Mr. X works for ABC company.Association describes a group of links with common structure and common semantics like a person works for a company.
2A links connects two or more objects.An association can be modeled as a class and may have a name, attributes and operations.
3A link is a part of an association.An association in a class diagram corresponds to a set of links in the objects diagram.
4A link works for particular independent entity.An association works for a group comprised of similar entities.
5A link is an object of an association.An association is a class for the link.
Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements