Skip to content

Glossary: Software Design Patterns

Delegation

Handing a job to an object you hold instead of doing it yourself. `Product.total` asks its pricing part and its wrapping part, then adds the answers.

Where the book teaches it

Related terms

Composition