Aggregation (object-oriented programming)

This is an old revision of this page, as edited by 129.128.113.57 (talk) at 18:39, 25 August 2004 (corrected tense fron "where one look at" to "where one looks at"). 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.