learnings

Beahvioral patterns

Behavioral patterns describe the interaction of objects and classes with each other and try to achieve the least degree of coupling of system components with each other, making the system more flexible.

There are two types of Behavioral Patterns:

  1. Class-level patterns
  2. Object-level patterns

Class-level patterns describe the interactions between classes and their subclasses. Such relationships are expressed through class inheritance and implementation. Here, the base class defines the interface, and subclasses define the implementation.

Only “Template Method” belongs to class level patterns.


Object-level patterns describe interactions between objects. Such relations are expressed by connections - association, aggregation and composition. Here structures are built by combining objects of some classes.

List of Behavioral patterns