Author:  Mike Atkinson Software
Release Notes
Download
Contributors

Previous Page

Software::JRefactory - Push up Method

Next Page

Push Up Method

This refactoring moves a method into the parent class. When the method is moved to the parent class, the protections on the method become "Protectted" and the appropriate import statements are added to the parent class.

To push up a method, right click on the method, select "Method Refactorings", and select push up.

Warning: if the method invokes another method that is not in the parent class, it is the user's responsibility to move that method (or an abstract method) to the parent class. The compiler will complain if the parent class does not have all the methods.

Previous Page

Last Modified: October 7, 2003

Previous Page