Multiple choice technology architecture

Suppose subclass B has an “is a” relationship with superclass A – Which relationship should be used?

  1. Association

  2. Composition

  3. Aggregation

  4. Generalization

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

Generalization is the correct UML relationship for 'is a' relationships between classes, representing inheritance. A solid line with a hollow arrowhead pointing from the subclass to the superclass signifies this relationship. Aggregation and composition represent 'has a' (whole-part) relationships, while association represents a general relationship between classes.