Singleton Flashcards

1
Q

Intent/Purpose

A

Ensure class has one and only one instance with a global point of access

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

Controlled access to sole instance

A

Consequence

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

Reduced name space

A

Consequence

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

More flexible than class operations

A

Consequence

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

Ensuring a unique instance

A

Implementation

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

Sub classing the Singleton class

A

Implementation

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