Glossary: Software Design Patterns
Composition
Also written: has-a composition
Building an object from smaller part objects it holds and hands work to, instead of inheriting. A `Product` has a pricing part and a wrapping part.
Glossary: Software Design Patterns
Also written: has-a composition
Building an object from smaller part objects it holds and hands work to, instead of inheriting. A `Product` has a pricing part and a wrapping part.