Jump to content

Aggregation (object-oriented programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 203.145.156.130 (talk) at 06:00, 16 June 2004. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Aggregation is a form of composition where we 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 another classes inside the class. An example will be a car class which is an aggregation of different classes like wheel,engine,body etc..