views:

405

answers:

2

What is the difference between different types of association i.e. aggregation, composition and dependency? explain with the help of code examples(in java, C++ or pseudo code).

A: 

Object composition wikipedia article might be helpful.

Upul
+1  A: 

Follow these links :

Aggregation (C++)
Composition (C++)
Dependency

Prasoon Saurav