Definitions

push-down

Push Down

[poosh-doun]
In software engineering, Push Down refactoring involves moving a method from a superclass into a subclass. Compare the following Java classes before and after the Push Down refactor is applied:

   public class SuperClass{
       void methodA() {
           //do something
}

       void methodB() {
           //do something else
} }

   public class SubClass extends SuperClass {
       void methodC() {
           //do something
} }

After the Push Down refactor is applied:

   public class SuperClass{
       void methodA() {
           //do something
} }

   public class SubClass extends SuperClass{
       void methodB() {
           //do something
}

       void methodC() {
           //do something else
} }

See also

Pull Up refactoring
Search another word or see push-downon Dictionary | Thesaurus |Spanish
Copyright © 2014 Dictionary.com, LLC. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature