Grokking Design Patterns for Engineers and Managers
Ask Author
Back to course home

0% completed

Vote For New Content
Chain of Responsibility Pattern
On this page

The Chain of Responsibility design pattern allows an object to pass a request down a chain of handlers. The originating object sends the request to a chain of handlers so that each handler in the chain can process it rather than sending it directly to a specific handler.

Imagine a company where all customer queries (technical, billing, general information) are managed by a single class, CustomerSupport. This class contains complex conditional logic to handle different types of queries

.....

.....

.....

Like the course? Get enrolled and start learning!

On this page