Question 53Asked in UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
Which of the following is a correct statement?
AComposition is a strong type of association between two classes with full ownership.
BComposition is a strong type of association between two classes with partial ownership.
CComposition is a weak type of association between two classes with partial ownership.
DComposition is a weak type of association between two classes with strong ownership.
Show answerHide answer
Correct answer: (A) Composition is a strong type of association between two classes with full ownership.
Explanation
Composition is a strong type of association between two classes with full ownership. Child objects do not have their own lifecycle without the parent object; if a parent object is deleted, all its child objects are also deleted.
From UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions)