Duck typing

/dʌk ˈtaɪpɪŋ/ noun

A programming concept where an object's suitability is determined by the presence of certain methods and properties, rather than the object's actual type.

Named after the phrase 'If it walks like a duck and quacks like a duck, then it must be a duck.' The term was popularized by Python programmer Alex Martelli in 2000, though the concept existed earlier in dynamic languages.

📖 Full word page — etymology, 47 translations, audio 🔑 Get Free API Key — 50 lookups/day 📚 Read the Docs — integrate Word Orb