Skip to content

Glossary: Software Design Patterns in C++

Interface

Also written: interfaces

The set of functions code expects an object to have. C++ has no `interface` keyword, so you write one as an abstract class or as a template with a concept.

Where the book teaches it

Related terms

Abstract classDuck typingInterface segregation principle