Common Patterns Flashcards

1
Q

What is an abstract factory?

A

An object creational pattern that focuses on the delegation of instantiation from one object to another

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

What is a factory method?

A

A class creational pattern that focuses on the use of inheritance to decide the object to be instantiated

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

What is a creational pattern?

A

A pattern that abstracts the object instantiation process. Hides how objects are create.

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

What’s the idiom for creating new objects?

A

In PHP, new operator. In JS, the literal syntax or new.

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