Question: 2 Which statement about compositions and aggregations is true?
- if one element of an aggregation is dereferenced, all its elements are eligible for garbage collection
- if a composition dies, the contents die
- the contents of a composition are all siblings
- an aggregation contains only abstract classes
Answer: The correct answer of the above question is Option B:if a composition dies, the contents die