Modeling Services > Dynamic Modeling Services > How to Use Dynamic Objects > Managing Inheritance
 
Managing Inheritance
A dynamic type can inherit from another dynamic type or from a static type. Multiple inheritance is not supported for dynamic types.
Inheritance from a Dynamic Type to Another Dynamic Type
If you have declared a UML inheritance relationship between your two dynamic types, this relationship will be declared to the model interpreter. In this case, a dynamic object will build its internal structure from its dynamic type and from its parent type. If no static type is involved in the inheritance path, an instance of IlsDynObject is created.
Inheritance from a Static Type to a Dynamic Type
If an inheritance relationship is declared between a dynamic type and a static type in the model interpreter, then the dynamic object will build its internal structure from its dynamic type and an instance of the first static type found in the inheritance path will be created.
Notes:  
1. To be able to derive a static type with a dynamic type, make sure this static type inherits directly and transitively from IlsDynObject.
2. A static type cannot inherit from a dynamic type.

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.