Skip to content

Glossary: Software Design Patterns

Inheritance

Also written: child class, subclass, parent class

A child class reuses its parent's code. It works well for shallow "is a" cases such as exceptions, but deep trees become hard to change.

Where the book teaches it

Related terms

LSPCompositionFragile base class