Skip to content

Glossary: Software Design Patterns in Java

Fragile base class

A parent class that its children depend on so closely that changing it quietly breaks them. Adding sales tax to `Product.total` would wrongly tax wholesale children.

Where the book teaches it

Related terms

Class explosionComposition