Extract Class

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]


EditText of this page (last edited March 27, 2013) or FindPage with title or text search