Home
/
Math
/
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

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

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

expert verifiedVerification of experts

Answer

4.7238 Voting
avatar
NerysMaster · Tutor for 5 years

Answer

<br />a) Composition ↦ "Continuous Line with Solid Diamond At One End"<br />b) Aggregation ↦ “Continuous Line with Hollow Diamond At One End"<br />c) Inheritance ↦ "Continuous Line with A Triangular Arrow Point of View"<br />d) Plain Association ↦ "Continuous Line without An Arrow or With A Thin Arrow"

Explain

To solve this question, we should first have a clear understanding about the meanings and symbols of different relationships presented in UML/views, including:<br />- `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.<br />- `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.<br />- `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.<br />- `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:<br />a) In Composition, a continuous line affixed with a solid diamond (completely colored) at one end is used.<br />b) In Aggregation, we usually see a continuous line with an open diamond (white interior) at one end as per correct rules.<br />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.<br />d) Plain Association only relies on series of A single line in various cases.
Click to rate: