Design Patterns Flashcards
1
Q
What is a Design Pattern?
A
Design patterns are typical tried and tested solutions to common problems.
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
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