1.

Composition is also a type of _______________ relationship.(a) Aggregation(b) Association(c) Inheritance(d) Both Aggregation an AssociationI got this question in an internship interview.My query is from Class Relationships topic in division Class Hierarchies, Library & Containers of C++

Answer» RIGHT option is (B) Association

The explanation: COMPOSITION is also a type of Both Aggregation and Association relationship. Composition RELATIONSHIPS are string relationships whereas others are a superset of this relationship.


Discussion

No Comment Found

Related InterviewSolutions