EMERGING TRENDS IN SOFTWARE ENGINEERING
MISCELLANEOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
is ____ a relationship
|
|
part ____ of relationship
|
|
composed ____ of relationship
|
|
none of above
|
Detailed explanation-1: -1. Association between two objects that illustrate the “has-a” relationship is called Aggregation. A composition defines a part-of a relationship, and both the entities are connected to each other. 2. Here the objects are independent of each other.
Detailed explanation-2: -Aggregation is a special case of association where all objects have their own lifecycle. It is represented by an empty diamond followed by a line. Aggregation represents ‘whole-part’ or ‘a-part-of’ relationship.
Detailed explanation-3: -Association refers to “has a” relationship between two classes which use each other. Aggregation refers to “has a"+ relationship between two classes where one contains the collection of other class objects. Inflexible in nature.