Bouml agregation4/2/2023 The composition is considered as a strong type of association. The composition is a part of an association relationship.Īggregation is considered as a weak type of association. The composition is indicated using a straight line with a filled arrowhead at any one of the ends.Īggregation is a part of an association relationship. Aggregation is denoted by a filled diamond, while an empty diamond denotes composition.ĭifference between Aggregation and CompositionĪggregation is one type of association between two objects that is also describing the “have a” relationship.Ĭomposition is a specific type of Aggregation which implies ownership.Īggregation is indicated using a straight line with an empty arrowhead at one end.On the contrary, in composition, deleting a single element affects another associated element. In Aggregation, deleting a single element does not affect another associated element. In Aggregation, linked objects are not dependent upon the other object, whereas in composition, objects are highly dependent upon each other.But in a composition relationship, objects that are associated with each other cannot remain in the scope without each other.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |