O'Reilly logo

Design Patterns in C# by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Introducing Responsibility

The responsibility of an object is comparable to the responsibility of a representative in the Oozinoz call center. When you order fireworks from Oozinoz, the person you speak to is a representative for the company—a proxy. He or she performs foreseeable tasks, usually by delegating those tasks to other systems and people. Sometimes the representative will delegate a request to a single, central authority who will mediate the situation or escalate problems up a chain of responsibility.

Like call center representatives, ordinary objects have the information and methods they need to operate independently. There are times, though, when you need to centralize responsibility, diverting from the normal, independent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required