Modeling inheritance for a class, struct or interface in a model (C# code)
Inheritance is modeled through Modeler Generalizations.
To model inheritance for a class, struct or interface in a model:
1. On a Class Diagram, add the Class, Data Type, Interface or Signal from which the inherited class, struct or interface is generated.
2. On the Class Diagram, add the Class, Data Type, Interface or Signal from which the inheriting class, struct or interface is generated.
3. On the Class Diagram tab, click the Generalization button, click the Class, Data Type, Interface or Signal from which the inheriting class, struct or interface is generated, and then click the Class, Data Type, Interface or Signal from which the inherited class, struct or interface is generated.
4. If the Class, Data Type, Interface or Signal that models the inherited class, struct or interface is a template class (generates a generic class, struct or interface), specify the type arguments through the Generalization you created. How?