Is composition similar to aggregation relationship?

Aggregation and Composition are subsets of association meaning they are specific cases of association . In both aggregation and composition object of one class “owns” object of another class. But there is a subtle difference: Aggregation implies a relationship where the child can exist independently of the parent.

Sizin İçin Seçtik  What are the attributes in Java?

Leave a Reply

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

Is composition similar to aggregation relationship?

Aggregation and Composition are subsets of association meaning they are specific cases of association . In both aggregation and composition object of one class “owns” object of another class. But there is a subtle difference: Aggregation implies a relationship where the child can exist independently of the parent.

Sizin İçin Seçtik  What are the attributes in Java?

Leave a Reply

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