Dezign Patterns

Chain of Responsibility Design Pattern

The Chain of Responsibility Pattern allows a request to pass through a chain of handlers, where each handler can either process the request or pass it along to the next handler in the chain.