Design Patters are the proven solutions to recurring design problem.
Definition of Design Pattern (as per Gang of Four book)
The term “Design Pattern” was popularized by the Gang of Four (GoF) in their landmark book, “Design Patterns: Elements of Reusable Object-Oriented Software” (1994). The GoF describes a design pattern as:
“A design pattern systematically names, explains, and evaluates an important and recurring design in object-oriented systems. It provides a general, reusable solution to a commonly occurring problem within a given context.”
Design Pattern Categories
- Creational Pattern: These patterns primary focus on design problems related to object creation. These are as follows
- Singleton
- Factory
- Abstract Factory
- Builder
- Prototype
2. Structural Pattern: