Behavioural Design Patterns Flashcards

1
Q

What are behavioural design patterns concerned with? What are the two types?

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

What are some of the behavioural design patterns?

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

What is the line of credit class example for the ‘state’ behavioural design pattern?

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

What is the ‘state’ behavioural design pattern?

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

What is the applicability of the ‘state’ behavioural design pattern?

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

Diagram of the ‘state’ behavioural design pattern:

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

Go through the ‘state’ behavioural design pattern example with the line of credit:

A

.

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

What are the consequences of the ‘state’ behavioural design pattern?

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

What is the ‘strategy’ behavioural design pattern?

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

What is a situation/example where we would want to use the ‘strategy’ behavioural design pattern?

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

What is the applicability of the ‘strategy’ behavioural design pattern?

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

‘strategy’ behavioural design pattern diagram:

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

Go over the example of the ‘strategy’ behavioural design pattern in the slides:

A

.

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

What are the consequences of the ‘strategy’ behavioural design pattern?

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

What is the ‘observer’ behavioural design pattern?

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

in what situation would we consider using the ‘observer’ behavioural design pattern?

A
17
Q

What is the applicability of the ‘observer’ behavioural design pattern?

A
18
Q

Diagram of the ‘observer’ behavioural design pattern:

A
19
Q

What is the spreadsheet example of the ‘observer’ behavioural design pattern?

A
20
Q

What are some of the caveats when it comes to the ‘observer’ behavioural design pattern?

A
21
Q

What are the consequences of the ‘observer’ behavioural design pattern?

A
22
Q

What is an example where you would use the ‘command’ behavioural design pattern?

A
23
Q

What is the ‘command’ behavioural design pattern? How does this help with the restaurant example?

A
24
Q

What is the applicability of the ‘command’ behavioural design pattern?

A
25
Q

Diagram of the ‘command’ behavioural design pattern

A
26
Q

Go over the code example of the ‘command’ behavioural design pattern:

A

.

27
Q

What are the consequences of using the ‘command’ behavioural design pattern?

A
28
Q

What are some more consequences of using the ‘command’ behavioural design pattern?

A
29
Q

What is a situation where you would want to use the ‘visitor’ behavioural design pattern?

A
30
Q

What is the ‘visitor’ behavioural design pattern?

A
31
Q

What is the applicability of the ‘visitor’ behavioural design pattern?

A
32
Q

Diagram of the ‘visitor’ behavioural design pattern:

A
33
Q

Go over the code example of the ‘visitor’ behavioural design pattern:

A

.

34
Q

What are the consequences of using the ‘visitor’ behavioural design pattern?

A