Entering content frameProcedure documentation Moving Components to the Superclass Locate the document in its SAP Library structure

Use

You can move attributes, methods and events of a class to their direct superclass. See also: Class Diagram.

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

  1. Select the class and change to the Class Editor.
  2. Make sure you are in Change mode.
  3. Choose Utilities ® Refactoring Assistant.
  4. The Assistant is started in a separate window.

  5. Select the component to be moved and move it to the name of the superclass using Drag & Drop.
  6. You can move several components at one time with multiple selection.

  7. Save using the corresponding icon.
  8. Close the Assistant.

Result

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

 

 

Leaving content frame