What is difference between Association and Aggregation in class?

When I look at the code about class association and aggregation. Both of them are roughly the same (use pointers to access parts of other classes)

I tried searching online for the difference between the 2 but I have trouble understanding them. I need some explanation in the form of code to help me compare the difference.

I will be really grateful if someone can provide me 2 simple codes about same thing but use different concepts (one use association while one use aggregation). Thanks



closed account (E0p9LyTq)
https://stackoverflow.com/questions/885937/what-is-the-difference-between-association-aggregation-and-composition
Topic archived. No new replies allowed.