MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SOFTWARE ENGINEERING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Aggregation represents ____ .
A
is ____ a relationship
B
part ____ of relationship
C
composed ____ of relationship
D
none of above
Explanation: 

Detailed explanation-1: -In UML models, an aggregation relationship shows a classifier as a part of or subordinate to another classifier. An aggregation is a special type of association in which objects are assembled or configured together to create a more complex object.

Detailed explanation-2: -Composition. 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.

Detailed explanation-3: -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-4: -In an aggregation relationship, objects that are associated with each other can remain in the scope of a system without each other. In a composition relationship, objects that are associated with each other cannot remain in the scope without each other.

There is 1 question to complete.