volume_mute

Reading a Generalization Hierarchy

publish date2026/06/08 08:10:23.773381 UTC

volume_mute

The diagram below shows a UML generalization hierarchy for doctor types in the Mentcare system.

Doctor Hospital doctor General practitioner Consultant Team doctor Trainee doctor Qualified doctor

In this UML generalization hierarchy, which direction does the arrowhead point?

Correct Answer

Upward, toward the more general superclass

Explanation

In UML generalization, the arrowhead (an open triangle/hollow arrowhead) points upward toward the more general class (the superclass). This indicates that the lower-level class (subclass) is a specialization of the more general class above. For example, the arrow from Hospital Doctor points up to Doctor, indicating Hospital Doctor is a type of Doctor.

Reference

Software Engineering, Ian Sommerville, 9th edition


Quizzes you can take where this question appears