Aggregation (object-oriented programming)

This is an old revision of this page, as edited by S.K. (talk | contribs) at 14:46, 1 October 2004 (+Category:Object-oriented programming; Links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Aggregation is a form of composition where one looks at the system as a whole rather than as parts. It is also based on has-a relationship and is implemented by creating objects of other classes inside the class. An example will be a car class which is an aggregation of different classes like wheel, engine, body etc.