Final Review Flashcards

1
Q

What are the participants of the Bridge pattern?

A

Abstraction - defines the interface and maintains a reference to the implementor
RefinedAbstraction- extends the abstraction
Implementor - defines the interface for implementation classes which doesn’t have to correspond with Abstraction and only provides primitive operations
ConcreteImplementor - implements the implementor

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

What are the participants of the Mediator pattern?

A

Mediator - defines an interface for communicating with colleague objects
ConcreteMediator - implements cooperative behavior by coordinating colleague objects, knows and maintains list of colleagues
Colleagues - knows the mediator, communicates with the mediator instead of colleague

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

What are the participants of the Memento pattern?

A

Memento
Originator
Caretaker

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