The class that wraps should have the same interface as the class it is wrapping so that clients don’t know that they are working with a wrapper.
- Chapter 6: I Don’t Have Much Time and I Have to Change It
- from Working Effectively with Legacy Code
- Publisher: Prentice Hall
- Released: September 2004
Do this when the class to wrap is called from many places.
Share this highlighthttp://www.safaribooksonline.com/a/working-effectively-with/3384664/