DESIGN-PATTERNS Course

Mediator

Go back

When looking for something, we will ask the mediator instead of asking each class.

  • ✅ : simplified communication
  • 🚫 : hard to maintain the mediator since that's the core of all communications

Example

I like this example on geeksforgeeks.