SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Structural
|
|
Behavioral
|
|
Creational
|
|
Knitting
|
Detailed explanation-1: -Chain of Responsibility belongs to the behavioral one – which is a group of design patterns that help with better interaction between objects in your code.
Detailed explanation-2: -Behavioral patterns are concerned with the assignment of responsibilities between objects, or, encapsulating behavior in an object and delegating requests to it. Chain of responsibility, Command, Mediator, and Observer, address how you can decouple senders and receivers, but with different trade-offs.
Detailed explanation-3: -Chain of Responsibility Pattern It is a behavioral design pattern that allows us to pass a request between a chain of objects. Each object in the chain contains its processing logic that performs some action and decides the next object from the chain to delegate the work.