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
- In the Class Builder, open the class that implements the interface to be moved.
- Make sure you are in Change mode.
- Choose Utilities → Refactoring → Refactoring Assistant.
- 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.
- Choose Save.
Result
The corresponding subclasses implement the interface.