Design Patterns Flashcards

1
Q

How is the public visibility written in class diagrams ?

A

+

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

How is the protected visibility written in class diagrams ?

A

#

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

How is the package visibility written in class diagrams ?

A

~

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

How is the private visibility written in class diagrams ?

A

-

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

What is an Composition link ?

A

It is a filled black diamond at the end of the link, it is a has-a composite, which means a child cannot exist without its parent

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

What is an Aggregation link ?

A

It is a hollow diamand that means “has-a”.. The child can live without the parent

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

How is heritage shown in a class diagram ?

A

it is shown witth a hollow triangle at the end

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

How is an abstract class shown in a class diagram ?

A

It is written in Italic

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

How is an interface shown in a class diagram ?

A

<>

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

What is a realisation ?

A

It is the dependency between a class and its interface, it is written with dots instead of a line

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

What is a Sequence Diagram ?

A

It is the flow of a program, there are two outgoing signals, the synchrone one needs a response before moving on, it is written with a full black triangle at the end of the line, and the asynchrone message that can continue even without a response, it is written with a slim arrow at the end of the line

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

What are the 3 pattern families ?

A

Creation, Structure and Behaviour

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

What is in the Creation family ?

A

Singleton, Abstract Factory, Factory method

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

What is in the Structure family ?

A

Composite, Decorator, Proxy

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

What is in the Behaviour family ?

A

Iterator, Observer, Template Method, Strategy, Visitor

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