Extract superclass
Last modified: 19 December 2022Language: Objective-C
Refactor | Extract/Introduce | Superclass
The Extract Superclass refactoring enables extracting certain members of a class into a newly created superclass.

Gif
Extract a superclass
Select the desired class in the editor.
Select Refactor | Extract/Introduce | Superclass from the main or context menu.
In the dialog that opens, type the name of the new superclass and select the members that you want to move to the superclass.
Click Extract.
Objective-C
Before | After |
---|---|
|
|
Thanks for your feedback!
Was this page helpful?