Duck Typing

  • Typing Disciplines

Name

Duck Typing

Description

Duck typing is a typing discipline where the suitability of an object for a particular operation is determined by whether the object supports the required methods or properties, rather than its actual type. It focuses on the behavior of an object rather than its explicit type. Duck typing is commonly associated with dynamically typed languages like Python and Ruby.

Referenced by