Concept
Duck typing
Books
Journey Statusmastered Tags
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.