Explain the use of aggregation and composition.
Answers
Answered by
0
A child cannot exist or survive without the parent and this is implies composition.
On the other part, aggregation implies relationship where a child can survive independently without the parent.
For example, class is the aggregation and parents are the composition, students are the aggregation and child is the composition.
Similar questions