Encapsulate Downcast

From CSSEMediaWiki
Revision as of 03:02, 23 September 2008 by Warwick Irwin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Straight from Martin Fowler 1999:

"A method returns an object that needs to be downcasted by its callers.

Move the downcast to within the method."

See Also

Avoid downcasting

Personal tools