hi everybody,
what's the difference between aggregation and composition in object oriented programming?
please explain the difference between these two with an example or
suggest any link where i can get information about these topics?
Printable View
hi everybody,
what's the difference between aggregation and composition in object oriented programming?
please explain the difference between these two with an example or
suggest any link where i can get information about these topics?
They are the same thing. Some objects are composed of (a composition) or an aggregate of (an aggregation) numerous other objects. As an example, take a car object, it can be composed of tire objects, engine objects, etc.