1

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).

atscool
  • 11
  • 1
  • 2
  • 1
    Has anyone noticed that nobody does composition anymore? It's all aggregation and dependency injection anywhere you look. – Dmitri Nesteruk Dec 31 '09 at 11:47
  • Please, check the code-based example at: http://stackoverflow.com/questions/731802/what-is-the-difference-between-composition-and-association-relationship/23464244#23464244 – Almir Campos May 05 '14 at 03:17

0 Answers0