Design Patterns Flashcards
0
Q
broadly, goF design patterns can be classified into the following three categories…
A
Creational patterns offer the flexibility to decide who is responsible for object creation, how the object will be created, which object will be created, and when the creation will take place. in essence, creational patterns provide an abstraction for object instantiation. examples: singleton, Factory, abstract Factory, and prototype.
- Structural patterns are focused on how related classes (and objects) are composed together to form a larger structure. examples: Composite, decorator, proxy, and Façade.
- Behavioral patterns define the communication among the objects and control the flow within the participating objects. examples: Mediator, Chain of responsibility, Observer, state, and strategy
1
Q
Are design patterns a ready-made solutions like code in a library?
A
No…