Skip to content

Glossary: Software Design Patterns in Go

Fragile base class

Also written: fragile base

The problem where changing an inner type quietly breaks every outer type that embeds it. Adding sales tax to `Product.Total` would wrongly tax wholesale products too.

Where the book teaches it

Related terms

EmbeddingType explosion