What is the use of aggregation in Java?

When an object A contains a reference to another object B or we can say Object A has a HAS-A relationship with Object B, then it is termed as Aggregation. Aggregation helps in reusing the code . Object B can have utility methods and which can be utilized by multiple objects.

Sizin İçin Seçtik  Uniswap neden kullanılır?

Leave a Reply

Your email address will not be published. Required fields are marked *