4.4 Mediator

When thinking about the mediator pattern, simply visualize your favorite room-based chat application. The application is the mediator. It is the mechanism by which certain people, or classes, can communicate with each other without needing to communicate directly.