Design PatternsBehavioral
Behavioral Patterns
Patterns concerned with algorithms and the assignment of responsibilities between objects.
1 min readDesigns · LLD & Patterns
Behavioral patterns describe how objects interact and distribute responsibility. They focus on communication patterns between objects.
Strategy
Interchangeable algorithms behind a common interface
Observer
One-to-many state-change notifications
Command
Encapsulate a request as an object
State
Behavior changes with the object's state
Chain of Responsibility
Pass request through a chain of handlers
Template Method
Skeleton algorithm with overridable steps
Iterator
Sequential access without exposing internals
Mediator
Encapsulate how a set of objects interact
Visitor
Add operations to a class hierarchy without modifying it
Memento
Capture and restore an object's state
Finished reading?
Mark it done to track your progress in Designs.