Software Pretty Printer JRefactory Printing Elixir Extensions Line Numbering Metrics Stub Generator Dev Utilities Requested Features Release Notes Download Contributors |  | ## Software::JRefactory - Push Down Field |
#### Push down Field This refactoring moves a field into one or more child classes. This refactoring leaves the permissions alone. To push down a field, select the field with the right mouse button, select "Field Refactorings", and push down. A list of child classes will be displayed, check each class that should receive a copy of the field. Warning: this refactoring is not safe. You might need to push some methods down into the children classes. An alternative would be to create an abstract getter and setter functions, and replace direct field accesses with those.
| Last Modified: June 6, 2000 |