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 Business process modeling, Knowledge

Tags

Tags: , , ,

No tags for this item

Comments

Both comments and pings are currently closed.

Comments are closed.

See also: