Creational Patterns Flashcards

1
Q

What is the purpose of the ‘Abstract Factory’ pattern?

A

provides an interface for creating families of related objects without specifying their concrete classes.

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

What is the purpose of the ‘Builder’ pattern?

A

schermt de constructie van een complex object af. Daardoor kun je met hetzelfde proces verschillende varianten van het complexe object construeren.

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

What is the purpose of the ‘Factory Method’ pattern?

A

defines an interface for creating an object, but let subclasses decide which class to instantiate.

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

What is the purpose of the ‘Singleton’ pattern?

A

garandeert dat een klasse slechts 1 instantie heeft, en biedt een globaal toegangspunt ernaartoe.

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

What is the ‘Simple Factory’ pattern?

A

is a commonly used simplified means of delegating the instantiation of objects to a specific class (the ‘factory’).

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