What is the difference between composition and aggregation? can anybody give me a sample of this OOAD?
Consider a student, the student's brain, and the school the student attends.
The brain is a part of the student. If the student is destroyed, so is the brain. This is composition.
The student has a school. The student survives the school's destruction, and vice versa. This is aggregation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With