Nicely quoted from Wikipedia, “Aggregation differs from ordinary composition in that it does not imply ownership. In composition, when the owning object is destroyed, so are the contained objects. In aggregation, this is not necessarily true.”

Referring to the example below, where several bank cards use the same object ‘pin’ for the pin number, if you lose your debit / credit card (or the ATM eats it for breakfast!), then it obviously no longer exists for you to use. However, the pin number still exists for the bank card (it is not ‘destroyed’ with the card). You normally find that your replacement bank card still uses the same pin number as for your previous card.

Originally published: Friday, February 26th, 2010 at 01:40 in Industrialism, Modeling


Tags: , , ,

No tags for this item


You can leave a response, or trackback from your own site.


Security question * Time limit is exhausted. Please reload CAPTCHA.

See also:

%d bloggers like this: