What is aggregation and association in Java?

Association refers to “has a” relationship between two classes which use each other. Aggregation refers to “has a”+ relationship between two classes where one contains the collection of other class objects.

Sizin İçin Seçtik  What is the difference between composition and inheritance?

Leave a Reply

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