Sobes.tech
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:

  1. Creational Patterns — responsible for object creation:

    • Singleton
    • Factory Method
    • Abstract Factory
    • Builder
    • Prototype
  2. Structural Patterns — define ways to compose classes and objects:

    • Adapter
    • Decorator
    • Proxy
    • Composite
    • Facade
    • Bridge
    • Flyweight
  3. 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.