Multiple choice technology web technology

Inheritance relationships are represented in the UML notation by:

  1. nesting of classes

  2. lines with a solid diamond at one end

  3. lines with a hollow diamond at one end

  4. lines with a triangular arrow at one end

  5. lines with a triangular arrow at both ends

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In UML notation, generalization (inheritance) is represented by a solid line with a hollow/unfilled triangular arrowhead pointing from the subclass to the superclass. A solid diamond indicates composition, a hollow diamond indicates aggregation, and a triangle at both ends is not a standard UML relationship.