Google News
logo
CPP - Quiz(MCQ)
Which type of relationship is modelled by Aggregation in C++?
A)
Has-A relationship
B)
Have-A relationship
C)
Is-A relationship
D)
Part-Of relationship

Correct Answer :   Has-A relationship


Explanation : Aggregation models the has-a relationship between classes. In this children can exist without a parent, therefore, they have a relationship.

Advertisement