Design Patterns Flashcards

1
Q

What is a Design Pattern?

A

Design patterns are typical tried and tested solutions to common problems.

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

Factory method

A

The Factory Method is a creational design pattern that provides an interface for creating objects in a superclass, but allow subclasses to alter the type of object that will be created

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

Design Patterns Classification

A
  • Creational patterns: provide object creation mechanisms that increase flexibility and code reuse
  • Structural patterns: explain how to assemble objects and classes into larger structures
  • Behavioral patterns: take care of effective communication and the assignment of responsibilities between objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly