Question
What UML representations have the following relationships? (match the answers) Composition Aggregation Inheritance Plain association Continuous Line with solid diamond at one end Continuous Line without an arrow (or a thin arrow) Continuous Line with hollow diamond at one end Continuous Line with a triangular arrow at one end
Answer
4.7
(238 Votes)
Nerys
Master · Tutor for 5 years
Answer
a) Composition ↦ "Continuous Line with Solid Diamond At One End"b) Aggregation ↦ “Continuous Line with Hollow Diamond At One End"c) Inheritance ↦ "Continuous Line with A Triangular Arrow Point of View"d) Plain Association ↦ "Continuous Line without An Arrow or With A Thin Arrow"
Explanation
To solve this question, we should first have a clear understanding about the meanings and symbols of different relationships presented in UML/views, including:- `Composition`: Definitionally, this describes a part-whole or a/general, belongs -to kindship, like the Parent-Child relationship. Here, one class representing a part of another and the composition is depicted by a full diamond.- `Aggregation`: This suggests a part-whole hierarchy just like `Composition`. But unlike `composition`, if the containing object is destroyed, the contained object may live. Aggregation is depicted by an empty diamond.- `Inheritance`: This describes an is-a relationship that propytut/called unause or kind of like relationship to represent parent-child sort of relationship. In UML , A solid line with an hollow arrow head towards the superclass will indicate this relationship between two classes.- `Plain Association`: One object in this relationship using functionality of another. In UML diagrams, it is represented by a solid line. With that context, let's amalgamate the following connections:a) In Composition, a continuous line affixed with a solid diamond (completely colored) at one end is used.b) In Aggregation, we usually see a continuous line with an open diamond (white interior) at one end as per correct rules.c) For the representation of 'Inheritance' in UML, we commonly envisage a continuous lone line with a hollow triangular arrow running the end directed inwards does.d) Plain Association only relies on series of A single line in various cases.