Encapsulate Downcast

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(New page: Straight from Martin Fowler 2003: "A method returns an object that needs to be downcasted by its callers. ''Move the downcast to within the method.''" ==See Also== [[Avoid downcast...)
 
 
Line 1: Line 1:
Straight from [[Martin Fowler 2003]]:
+
Straight from [[Martin Fowler 1999]]:
  
 
"A method returns an object that needs to be downcasted by its callers.
 
"A method returns an object that needs to be downcasted by its callers.

Latest revision as of 03:02, 23 September 2008

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