OOAD Functions Q/A #4



Question:Differentiate between link and association.

Answer:

Sr. No. Link Association
1 A 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.
2 A links connects two or more objects. An association can be modeled as a class and may have a name, attributes and operations.
3 A link is a part of an association. An association in a class diagram corresponds to a set of links in the objects diagram.
4 A link works for particular independent entity. An association works for a group comprised of similar entities.
5 A link is an object of an association. An association is a class for the link.
Advertisements