Content deleted Content added
m →C# example: file-scoped namespace |
fix formatting |
||
Line 14:
that describe common solutions to recurring design problems when designing flexible and reusable object-oriented software, that is, objects that are easier to implement, change, test, and reuse.
<ref>{{cite web|title=The Chain of Responsibility design pattern - Problem, Solution, and Applicability|url=http://w3sdesign.com/?gr=b01&ugr=proble|website=w3sDesign.com|access-date=2017-08-12}}</ref>
* Coupling the sender of a request to its receiver should be avoided.
Line 22:
because it couples the class to a particular receiver and makes it impossible to support multiple receivers.
* Define a chain of receiver objects having the responsibility, depending on run-time conditions, to either handle a request or forward it to the next receiver on the chain (if any).
|