IntroduceLocalExtension
Last edit May 3, 2010
[Vaguely] From Fowler's
RefactoringImprovingTheDesignOfExistingCode
:
If you find yourself with a handful of
ForeignMethod
s, it might be best to derive your own class from the existing one and use it instead.
Some feasible examples include:
A Collection class that allows you to
UseClosuresNotEnumerations
...
c.f.
MartinFowler
's
RefactoringImprovingTheDesignOfExistingCode
, pg. 149.
http://www.refactoring.com/catalog/introduceLocalExtension.html