Jump to content

Aggregation (object-oriented programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Bluemask (talk | contribs) at 16:16, 22 July 2004 (+fmt +stub). 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 look 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.