As the Aggregation and Composition is related Association or we can say it gives the understanding of relationship between object or anything else.
I posted this question because i asked one question in Interview that what is the Composition and Aggregation.
So as per my understanding i given my idea which is as follow.
http://www.coderanch.com/t/522414/java/java/Association-Aggregation-Composition
Aggregation, Association and Composition
Association vs. Aggregation vs. Composition in Java
and also visited much more.
and my basic explanation was related that Aggregation indicates loose relationship while Composition indicates Strong relationship and clear explanation related to this.
But the Interviewer Insulted me and said this is the theoretical concept about which you saying i want the perfect Java code in which how they differ and also told if i will give you one small Application then how would you identify that this is the Aggregation and this is the Composition?
So now i want to understand pure Technical Concept and Java code in which how they differ and what it is?