Aggregation - 2017

From TRCCompSci - AQA Computer Science
Revision as of 16:02, 21 February 2017 by Admin (talk | contribs)
Jump to: navigation, search

Aggregation is where you delete the main class and all it's subclasses are kept, rather than being deleted along with it.

Example

The relationship between Location, warren and fox is one of aggregation. A location is just a container for references to the warrens and foxes. They are created and destroyed by the simulation, not by the location