1.

In which of the following relationship objects of related classes are strongly dependent?(a) Aggregation(b) Association(c) Composition(d) Both Composition an AssociationI got this question in an online quiz.This interesting question is from Class Relationships in division Class Hierarchies, Library & Containers of C++

Answer»

Correct choice is (d) Both COMPOSITION an ASSOCIATION

To explain I would say: In both Composition and Association, objects of related classes are STRONGLY dependent. For example, BOOKS will be DESTROYED if the library does not exist (talking about objects of classes).



Discussion

No Comment Found

Related InterviewSolutions