What is difference between composition and aggregation 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  How do you know if its aggregation or composition?

Leave a Reply

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

What is difference between composition and aggregation 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 is association in Java?

Leave a Reply

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