What is the simple description of aggregation in Java ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the simple description of aggregation in Java ?

I need a simple description and a simple example for it

10th Dec 2019, 3:34 AM
Barış Özkaya
Barış Özkaya - avatar
1 Answer
+ 3
Classes are the building blocks of your java program. Aggregation and Composition represent the relationship between your classes: one class is part of the other, used by the other. https://www.google.com/amp/s/www.geeksforgeeks.org/association-composition-aggregation-java/amp/ https://beginnersbook.com/2013/05/aggregation/
10th Dec 2019, 5:29 AM
Tibor Santa
Tibor Santa - avatar