Skip to content

Glossary: Software Design Patterns in C++

Delegation

Also written: delegate

Handing a job to another object you hold. `Product::total` asks its pricing part and then its wrapping part.

Where the book teaches it

Related terms

Composition