Extract Superclass
Basics
The Extract Superclass refactoring enables extracting certain methods of a class into a superclass.
Example
Before | After |
---|---|
Extracting a superclass
To extract a superclass
- Select the desired class in one of the views, or just open it in the editor.
- On the on the main menu or on the context menu, choose .
- In the Extract Superclass dialog box that appears, specify the following information:
- Proceed with the refactoring.
Last modified: 26 October 2017