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.
Glossary: Software Design Patterns in C++
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.