March 2, 2012

C++ Implementation, simple association, composition, aggregation

C++ Implementation, simple association, composition, aggregation


1. Simple Association:

It can be implemented by sending messages from one object to another as this type of association does not involve any type of containment.

2. Composition:

Composition is achieved by adding declaration of object of one class in other object.

3. Aggregation:

Aggregation is implemented by placing the reference (pointer array) of the aggregating class objects in the class where they are aggregated.

Last updated: March 19, 2014