1.

Which of the following relationships is uni-directional?(a) Aggregation(b) Association(c) Composition(d) Both Aggregation and CompositionI got this question in an internship interview.My question comes from Class Relationships topic in chapter Class Hierarchies, Library & Containers of C++

Answer»

Correct answer is (d) Both AGGREGATION and COMPOSITION

The BEST EXPLANATION: Both Association and composition are uni-directional relationships. For example, departments can have STUDENTS but another way around is not possible.



Discussion

No Comment Found

Related InterviewSolutions