Design Patterns · Junior · Question 20 of 75

What does a Mediator do?

Explanation

Form components don't call each other directly; they notify a mediator (the parent, a form controller), which decides what to change. This reduces "everyone with everyone" links. The risk is the mediator growing into an overly smart object.

Further reading

Problem with a question

Design Patterns · Junior · question 20

Test yourself

Take the Design Patterns · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz