Duck Typing

Return to Glossary

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.

Source: https://www.yourdictionary.com/duck-typing