1.

Which type of relationship is modelled by Aggregation?(a) Is-A relationship(b) Has-A relationship(c) Part-Of relationship(d) Have-A relationshipI had been asked this question in an international level competition.Query is from Class Relationships in division Class Hierarchies, Library & Containers of C++

Answer»

The correct choice is (b) Has-A relationship

The BEST explanation: Aggregation models the has-a relationship between CLASSES. In this children can exist WITHOUT a parent, THEREFORE, they have a relationship.



Discussion

No Comment Found

Related InterviewSolutions