Moving Interfaces to a Subclass

Use

Interfaces that are implemented by a class can be moved to their subclasses. The relevant subclass(es) become the implementing classes. For more information, see Class Diagram.

Procedure

  1. In the Class Builder, open the class that implements the interface to be moved.
  2. Make sure you are in Change mode.
  3. Choose Utilities → Refactoring → Refactoring Assistant.
  4. Select the interface to be moved and move it to the name of the superclass using Drag & Drop.

    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.

  5. Choose Save.

Result

The corresponding subclasses implement the interface.