Skip to content
scrambled
Programming Language Theory Concept

Duck typing

Books JourneyProgramming Language Theory Statusmastered Tags
  • language feature design
  • programming paradigm
  • semantics
  • type theory

An informal term for Structural typing - if an object has the required methods/properties (\"quacks like a duck\"), it can be used regardless of its declared type or class hierarchy.

An informal term for Structural typing - if an object has the required methods/properties ("quacks like a duck"), it can be used regardless of its declared type or class hierarchy.