IBM Support

A child class will always inherit a state chart from its parent class

Technote (FAQ)


Can a child class be configured to not inherit a state chart from its parent class in IBM Rational Rhapsody?


There are scenarios where the state chart for a child class will be very different from that of its parent. You may want to remove the state chart and start from scratch, but this is not possible given the rules of inheritance.


There is no way to prevent a state chart from being inherited.

If the class was being coded by hand, there would be no way to specify what is inherited from the parent class. What is inherited can be overridden and modified, but not removed.

The same is true in this case, the Override Inheritance option (on the right-click menu of the state chart in the browser) can be used to alter the inherited state chart, but not delete it.

Document information

More support for: Rational Rhapsody

Software version: 7.3, 7.4, 7.5, 7.6, 8.0, 8.1

Operating system(s): Windows

Reference #: 1655118

Modified date: 21 October 2014