Show Inherited Attributes and Operations
Help|Tutorials|UML|Diagramming| 13 October 2022 | Dusan Rodina - softwareideas.net
A subclass in the UML class diagram is connected with its superclass using the generalization relationship. The subclass inherits all attributes and operations of the superclass, although they are listed only in the superclass box. This tutorial shows you how to show also the inherited fields in subclasses.
If you want to show the attributes and operations inherited from the superclass for the given UML class, you should do as follows:
- 1. Right-click on the desired subclass.
- 2. Choose Show Parts from the context menu.
- 3. Choose Inherited Fields
- 4. The inherited attributes and operations from all the superclasses will be listed in the subclass, rendered a little bit lighter than the owned fields.
Show inherited attributes and operations
If you want to show inherited fields for all subclasses in the diagram, right-click on an empty space in the diagram and choose Diagram Properties from the context menu. Then switch to the Show Parts tab and check the Inherited Fields check box.