What is the difference between aggregation and composition in Java?

In Aggregation, objects can remain in the scope of a system without each other. In a composition relationship, objects cannot remain in the scope of a system without each other .

Sizin İçin Seçtik  Why do we use aggregation in Java?

Leave a Reply

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