Skip to content

Glossary: Software Design Patterns in Go

Inheritance

Also written: subclass, child class

A way to build a type by extending another ("is a"). Go has no inheritance; embedding is its nearest thing, and Go chose composition on purpose.

Where the book teaches it

Related terms

EmbeddingCompositionHas-a / is-a