Junior — Middle
Can you name the main types of design patterns?
sobes.tech AI
Answer from AI
The main types of design patterns are divided into three groups:
-
Creational Patterns — responsible for object creation:
- Singleton
- Factory Method
- Abstract Factory
- Builder
- Prototype
-
Structural Patterns — define ways to compose classes and objects:
- Adapter
- Decorator
- Proxy
- Composite
- Facade
- Bridge
- Flyweight
-
Behavioral Patterns — describe interactions between objects:
- Observer
- Strategy
- Command
- Iterator
- State
- Template Method
- Mediator
- Chain of Responsibility
These patterns help create flexible, extendable, and maintainable application architectures.