Lecture 8-Mediator pattern Flashcards
1
Q
What does the mediator pattern do?(3)
A
-All of the appliance objects can be simplified.
-They tell the mediator when their state changes.
-They respond to requests from the mediator.
2
Q
Where do we use the mediator pattern?
A
A group of tightly coupled classes which would benefit from being more independent–> for easier maintenance or simpler reuse of these classes.
3
Q
What is the con of using the mediator pattern?
A
Without proper design–> mediator object can become overly complex.