Skip to content

Glossary: Software Design Patterns in JavaScript

Has-a / is-a

Also written: has-a, is-a, has a, is a

Two ways to relate objects. Composition says a product has a pricing rule, while inheritance says a promo card is a gift card.

Where the book teaches it

Related terms

CompositionInheritance