Which of the following statements correctly distinguishes Composition from…
Which of the following statements correctly distinguishes Composition from Aggregation in Object-Oriented Programming (OOP)?
- A.
Aggregation represents stronger dependency than Composition
- B.
In Composition, the child object depends on the lifecycle of the parent object
- C.
Composition allows child objects to exist independently of the parent
- D.
Aggregation and Composition both represent identical relationships
- E.
Composition is used only for multiple inheritance relationships
Attempted by 46 students.
Sign up free to check your answer
Sign up freeLoading lesson…

