Early previewThis guide is in development. Items tagged verify are still being checked against official docs.
nebx Learn
GitHub
Menu
Home/Learning paths/Behavioral patterns
Learning path 4 of 6 · Intermediate

Behavioral patterns

All different, with no central theme: they describe how objects communicate and share responsibility.

11 lessons11 patternsQuizzesFree
0 of 11 lessons complete
  1. 1
    Chain of Responsibility

    Passes a request along a chain of handlers; each decides to process it or pass it on.

    BehavioralQuiz
  2. 2
    Command

    Turns a request into a stand-alone object containing all information about the request.

    BehavioralQuiz
  3. 3
    Interpreter

    Defines a grammar for a simple language and an interpreter that evaluates sentences in it.

    BehavioralQuiz
  4. 4
    Iterator

    Traverses elements of a collection without exposing its underlying representation.

    BehavioralQuiz
  5. 5
    Mediator

    Reduces chaotic dependencies between objects by making them communicate through a mediator object.

    BehavioralQuiz
  6. 6
    Memento

    Saves and restores an object's previous state without revealing its implementation.

    BehavioralQuiz
  7. 7
    Observer

    Defines a subscription mechanism that notifies multiple objects about events in the object they observe.

    BehavioralDemoCodeQuiz
  8. 8
    State

    Lets an object alter its behaviour when its internal state changes, as if it changed its class.

    BehavioralQuiz
  9. 9
    Strategy

    Defines a family of algorithms, puts each in its own class, and makes them interchangeable.

    BehavioralDemoCodeQuiz
  10. 10
    Template Method

    Defines the skeleton of an algorithm in a base class and lets subclasses override specific steps.

    BehavioralQuiz
  11. 11
    Visitor

    Separates algorithms from the objects on which they operate.

    BehavioralQuiz