What is the difference between 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  Türkiye'de Mercedes ne kadar?

Leave a Reply

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