Skip to content

Glossary: Software Design Patterns in C++

Inheritance

Also written: child class, derived class, base class, parent class

A way for a child (derived) class to reuse its parent's (base class's) code and override its virtual functions. It models an is-a relationship, and deep trees of it cause class explosions.

Where the book teaches it

Related terms

Has-a / is-aCompositionFragile base class