1.

In which of the following relationship objects of related classes can occur independently?(a) Aggregation(b) Association(c) Composition(d) Both Aggregation an Association

Answer» The correct option is (d) Both Aggregation an Association

The explanation is: In both Aggregations and Association of objects of related classes can occur independently. For example, an employee can have a bank and a bank can have an employee. Also, Association is a superset of Aggregation, therefore, it also follows the same.


Discussion

No Comment Found

Related InterviewSolutions