Refactoring - Extracting Superclass

From RAD Studio
Jump to: navigation, search

Go Up to Refactoring Procedures Index

This topic explains how to use the "Extract superclass" operation".

To use the "Extract superclass" operation:

  1. Select one or more code elements (class, interface, field, method, event, property, or indexer) in the Code Editor or the Modeling's Diagram View or Model View.
  2. On the main menu, choose Refactor > Extract Superclass.

    Tip: Alternatively, you can choose Refactor > Extract Superclass on the context menu of the selection.

  3. In the Extract superclass dialog box, enter the name for the superclass and designate its namespace, if applicable.
  4. Specify the members to be used in the resulting superclass by setting or clearing the respective check-boxes. If applicable, indicate that a method is abstract in the extracted superclass.
  5. Click OK. The Refactoring window opens allowing you to review the refactoring before committing to it.
  6. Click the Perform refactoring button to complete the extraction.

See Also