Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C Code > Generating C Code > Overview of generating C code (C code) > Overview of modeling C code (C code) > Overview of modeling C code (C code) > Generalization mapping for C (C code)
  
Generalization mapping for C (C code)
If a Class, Data Type, Interface or Signal owns Generalizations that define inheritance, the attributes of that item are rolled down. Rolled down attributes are indicated in the generated code through comments.
Example code:
struct Class3
{
/* Start of RtS Rolled Down Items */
int Attribute1;
int Attribute2;
/* End of RtS Rolled Down Items */
int Attribute3;
};
The properties of a Generalization are ignored.
* 
If a derived Class, Data Type, Interface or Signal is stereotyped by the «C Module», base members are not rolled down.