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

  1. Creational — responsible for object creation:

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

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

Can you list the main groups of design patterns by… - sobes.tech