Skip to content

Glossary: Software Design Patterns

Has-a / is-a

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

Two kinds of relationship. Inheritance says a wholesale product is a product. Composition says a product has a pricing rule.

Where the book teaches it

Related terms

CompositionInheritance