Behavioural design patterns deal with how objects and classes interact with each other and the assignment of responsibilities between objects. In these design patterns, the interaction between the objects should be in such a way that they can easily talk to each other in a loosely coupled manner.

Scopes of Behavioural Patterns

Behavioural Class Patterns

Use inheritance to distribute behaviour between classes

  • Interpreter Pattern
  • Template Method Pattern

Behavioural Object Patterns

Use object composition (interaction), rather than inheritance to accomplish specific tasks

  • Strategy Pattern Enables the selection of related but varying algorithms at runtime for a specific context.
  • State Pattern Allows objects alter their behaviour when their internal state changes.
  • Memento Pattern Save and restore the previous state of an object.
  • Observer Pattern Defines subscription mechanism to notify multiple objects about events that occur in the object they are observing.

Back to super node: Software Design Patterns

Design_PatternBehavioural_Design_PatternsSOFT2201DependencyLoose_coupling