Behavioral Patterns Flashcards

1
Q

A way of passing a request between a chain of objects

A

Chain of responsibility

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

Encapsulate a command request as an object

A

Command

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

A way to include language elements in a program

A

Interpreter

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

Sequentially access the elements of a collection

A

Iterator

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

Defines simplified communication between classes

A

Mediator

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

Capture an restore an object’s internal state

A

Memento

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

Designed to act as a default value of an object

A

Null Object

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

Alter an object’s behavior when its state changes

A

State

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

A way of notifying change to a number of classes

A

Observer

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

Defer the exact steps of an algorithm to a subclass

A

Template Method

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

Encapsulates an algorithm inside a class

A

Strategy

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

Defines a new operation to a class without change

A

Visitor

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