Refactoring: Improving the Design of Existing Code

@inproceedings{Fowler1999RefactoringIT,
  title={Refactoring: Improving the Design of Existing Code},
  author={Martin Fowler},
  booktitle={XP/Agile Universe},
  year={1999}
}
class Price { abstract int getPriceCode(); } class ChildrenPrice extends Price { int getPriceCode(){ return MOVIE.CHILDREN; } } class NewReleasePrice extends Price { int getPriceCode(){ return MOVIE.NEW_RELEASE; } } class RegularPrice extends Price { int getPriceCode(){ return MOVIE.REGULAR; } } Refactoring: step 9c – change accessing to the moved type code:  change Movie’s accessors for the type code (_priceCode) to use the new classes:  Accessors before change: 
Highly Influential
This paper has highly influenced 29 other papers. REVIEW HIGHLY INFLUENTIAL CITATIONS
Highly Cited
This paper has 282 citations. REVIEW CITATIONS

Topics

Statistics

0102030'00'02'04'06'08'10'12'14'16'18
Citations per Year

283 Citations

Semantic Scholar estimates that this publication has 283 citations based on the available data.

See our FAQ for additional information.