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.
Glossary: Software Design Patterns
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.