Junior — Middle
Can you list the main groups of design patterns by the GoF class?
sobes.tech AI
Answer from AI
The main groups of design patterns according to the GoF (Gang of Four) classification are divided into three categories:
-
Creational — responsible for object creation:
- Singleton
- Factory Method
- Abstract Factory
- Builder
- Prototype
-
Structural — define ways to compose classes and objects:
- Adapter
- Bridge
- Composite
- Decorator
- Facade
- Flyweight
- Proxy
-
Behavioral — describe interactions and responsibilities between objects:
- Chain of Responsibility
- Command
- Interpreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor
These patterns help solve common design problems and improve code structure.