Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not related 5.A system of objects inherited from each other
RE: Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not r
Aggregation is a variant of the "has a" or association relationship; aggregation is more specific than association. It is an association that represents a part-whole relationship. As a type of association, an aggregation can be named and have the same adornments that an association can. However, an aggregation may not involve more than two classes.
Aggregation can occur when a class is a collection or container of other classes, but where the contained classes do not have a strong life cycle dependency on the container – essentially, if the container is destroyed, its contents are not.
In UML, it is graphically represented as a clear diamond shape on the containing class end of the tree of lines that connect contained class(es) to the containing class.
On the other hand, here’s what composition means:
Composition is a stronger variant of the "has a" or association relationship; composition is more specific than aggregation. It is represented with a solid diamond shape.
Composition has a strong life cycle dependency between instances of the container class and instances of the contained class(es): If the container is destroyed, every instance that it contains is destroyed as well.
The UML graphical representation of a composition relationship is a filled diamond shape on the containing class end of the tree of lines that connect contained class(es) to the containing class.
Basically, aggregation, being the weaker of the two concepts, means simply that objects are build using each other. Therefore, choice 2 is the correct one.
RE: Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not r
2.A system of objects that are built using each other
RE: Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not r
RE: Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not r
2. A system of Objects that are build using each other