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).
Has anyone noticed that nobody does composition anymore? It's all aggregation and dependency injection anywhere you look.
Please, check the code-based example at:stackoverflow.com/questions/731802/…