0
1.2kviews
Differentiate between aggregation and association.

Subject: Object Oriented Modeling and Design

Difficulty: Medium

Marks: 4 Marks

1 Answer
0
17views
Aggregation Association
Aggregation is the "part -whole" or "a-part-of" relationship in which objects representing the components Association describe q group of links with common structure & common semantics.
Aggregation is drawn like association,except a small diamond indicates the assembly end of the relationship A link is an instance of an association
Notation: enter image description here Notation: enter image description here
An Aggregation is a speciallized association An Association defines a relationship between two or more classes
Aggregation is tightly looped from of association with same extra semantics Association represents static relationship between classes
Two types:Aggregation and composition Two types:Binary and n-ary
Example: Shows that a document consists of many sentences. enter image description here Example: Shows the object model for teacher and student associations. enter image description here
Please log in to add an answer.