Embed presentation
Download to read offline



















The mediator pattern promotes loose coupling between classes by defining an object that encapsulates how groups of classes interact. It defines an intermediary object that manages interactions between peers instead of peers referring to each other directly. The mediator pattern identifies classes that could benefit from loose coupling, encapsulates their interactions in a mediator class, and has peer objects interact with the mediator instead of each other. This allows peer objects to be unaware of changes to other peer objects, reducing coupling between classes.

















