Software Pretty Printer JRefactory Printing Elixir Extensions Line Numbering Metrics Stub Generator Dev Utilities Requested Features Release Notes Download Contributors |  | ## Software::JRefactory - Push up Method |
#### 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.
| Last Modified: June 6, 2000 |