SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
It avoids attaching the sender of a request to its receiver, giving this way other objects the possibility of handling the request too.
|
Bridge
|
|
Adapter
|
|
Composite
|
|
Chain of Responsibility
|
Explanation:
Detailed explanation-1: -Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.
Detailed explanation-2: -As the name suggests, the chain of responsibility pattern creates a chain of receiver objects for a request. This pattern decouples sender and receiver of a request based on type of request.
Detailed explanation-3: -Chain of Responsibility is a behavioral design pattern that lets you pass requests along a chain of handlers. Upon receiving a request, each handler decides either to process the request or to pass it to the next handler in the chain.
There is 1 question to complete.