Middle
What is the purpose of the 'Chain of Responsibility' design pattern?
sobes.tech AI
Answer from AI
To create a chain of handler objects, where each handler can process a request or pass it to the next object in the chain. This avoids tight coupling between the sender and receiver of the request and adds flexibility in request processing.