Entering content frameProcedure documentation Moving Interfaces to Subclass(es) Locate the document in its SAP Library structure

Use

Interfaces that are implemented by a class can be moved to their subclasses. The relevant subclass(es) become the implementing classes. See also: Class Diagram.

Caution

Note that a conflict could occur if the interface is not moved to all the subclasses. The interface components resulting from inheritance are deleted in the subclasses that do not implement the interface.

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 subclass using Drag & Drop.
  6. If there is more than one subclass, you can move the selected interface to all the subclasses in one step by dragging the interface to Subclasses.

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

Result

The corresponding subclasses implement the interface.

 

 

Leaving content frame