Question 53Asked in UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)

Which of the following is a correct statement?

  1. AComposition is a strong type of association between two classes with full ownership.
  2. BComposition is a strong type of association between two classes with partial ownership.
  3. CComposition is a weak type of association between two classes with partial ownership.
  4. 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)

This is question 53 of UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.