Duck Typing

From Wikicliki
Revision as of 06:25, 28 August 2011 by WikiSysop (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In computer programming with object-oriented programming languages, duck typing is a style of dynamic typing in which an object's current set of methods and properties determines the valid semantics, rather than its inheritance from a particular class or implementation of a specific interface.

"When I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck."