Which of the following statements correctly distinguishes Composition from…

PYQ IBPS SO CRP SPL-XIV (2024)

Which of the following statements correctly distinguishes Composition from Aggregation in Object- Oriented Programming (OOP)?

  1. A.

    Aggregation represents stronger dependency than Composition

  2. B.

    In Composition, the child object depends on the lifecycle of the parent object

  3. C.

    Composition allows child objects to exist independently of the parent

  4. D.

    Aggregation and Composition both represent identical relationships

  5. E.

    Composition is used only for multiple inheritance relationships

Attempted by 33 students.

Sign up free to check your answer

Sign up free

Explore the full course: Ibps So It Mains

Loading lesson…