Show TOC

 Moving Components to a SuperclassLocate this document in the navigation structure

Use

You can move attributes, methods and events of a class to their direct superclass.

Caution

Note that a conflict occurs if non-private components that you want to move to the superclass already exist in another class that is derived from this superclass. This results in a syntax error in the corresponding derived class.

Procedure

Open the class.

Make sure you are in Change mode.

Choose Utilities → Refactoring → Refactoring Assistant.

The Assistant is started in a separate window.

Select the component to be moved and move it to the name of the superclass using Drag & Drop.

You can move several components at one time with multiple selection.

Choose Save.

Result

The moved components are deleted in their original class and created in the superclass.