What is a Refactoring?
•
A structural change that improves
program design, while maintaining
behavior
•
–
Moving a method to reduce coupling
–
–
Extracting a base class with common methods
–
–
Encapsulating methods in a new delegate
Briefly, a refactoring is a structural change to a program that improves its design, without changing its visible behavior.
Common examples are moving a method, generalizing classes to a base class, and encapsulating methods into a delegate.