Skip to content

Glossary: Software Design Patterns in C++

Duck typing

Judging an object by what it can do, not by its class: 'if it quacks like a duck, it's a duck'. C++ does it with templates checked at compile time, often with a concept.

Where the book teaches it

Related terms

ConceptInterfaceTemplate