Replace Type Code with Class <IMG SRC = "http://www.refactoring.com/catalog/updated.gif" border=0>
2003. 8. 3. 12:38
Replace Type Code with Class
Replace the number with a new class.
![](http://www.refactoring.com/catalog/repTypeCodeWithClass.gif)
For more information see page 218 of Refactoring
Corrections
Privitizing the accessors for the type code
At the end of the refactoring I said that you could make those methods that use the type code, eg getCode(), private. I neglected to say that you first have to find the callers of those methods and change them to no longer use the code number.
Contributors
- Randy Coulman
***** 아름다운프로님에 의해서 게시물 복사 + 카테고리변경되었습니다 (2003-12-18 17:27)