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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the con of using the mediator pattern?

A

Without proper design–> mediator object can become overly complex.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly