Entering content frame

Procedure documentation Moving Interfaces to the Superclass Locate the document in its SAP Library structure

Use

Interfaces that are implemented by a class can be moved to the direct superclass. The superclass becomes the implementing class. See also: Class Diagram.

Caution

Note that a conflict can occur if another subclass of the superclass to which you are moving the interface also implements the interface. In this case this subclass would inherit the interface after the move and would implement it again. This situation is not allowed.

Procedure

  1. Select the class that implements the interface to be moved 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 interface to be moved and move it to the name of the superclass using Drag & Drop.
  6. Save using the corresponding icon.
  7. Close the Assistant.

Result

The superclass implements the interface that was moved.

 

 

Leaving content frame