Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
http://javapapers.com/oops/association-aggregation-composition-abstraction-generalization-realization-dependency/ This might help. In summary: Association is a relationship between two classes. Aggregation is a directional Association.("Has a" relation i.e., One class containing another class) Composition : Its a restrictive Aggregation.
24th Jul 2016, 5:35 AM
NITHIN.G.N Gowda
NITHIN.G.N Gowda - avatar