Extract subclass
Last modified: 07 December 2022Language: Objective-C
The Extract Subclass refactoring enables extracting certain members of a class into a newly created subclass.

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