Extract Class

last modified: March 27, 2013

You have one class doing work that should be done by two.

Therefore, Create a new class and move the relevant fields and methods from the old class into the new class.

c.f. MartinFowler's RefactoringImprovingTheDesignOfExistingCode, pg. 149.

http://www.refactoring.com/catalog/extractClass.html


[CategoryRefactoring]


Loading...