Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C# code > C# code > Reverse engineering legacy C# code > Modeling C# code in Modeler > Modeling inheritance for a class, struct or interface in a model (C# code)
  
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 toolbar, 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?