Behavioral Patterns
Everything on SkillVeris tagged Behavioral Patterns — collected across the glossary, study notes, blog, and cheat sheets.
17 resources across 2 libraries
Cheat Sheets(1)
Interview Questions(16)
What is a Design Pattern?
A design pattern is a reusable, named solution to a recurring software design problem, expressed as a template of collaborating classes and objects rather than…
What is the Strategy Pattern?
The Strategy pattern defines a family of interchangeable algorithms, encapsulates each one behind a common interface, and lets the client swap the algorithm at…
What is the Chain of Responsibility Pattern?
The Chain of Responsibility pattern passes a request along a chain of handler objects until one of them decides to process it, decoupling the sender of a reque…
What is the Command Pattern?
The Command pattern encapsulates a request as a standalone object, bundling the receiver, the action to invoke, and its parameters, so callers can issue, queue…
What is the Interpreter Pattern?
The Interpreter pattern defines a class-based representation of a language’s grammar, using an object structure where each grammar rule is a class, and an inte…
What is the Iterator Pattern?
The Iterator pattern provides a standard way to access the elements of a collection sequentially without exposing its underlying representation, using a separa…
What is the Mediator Pattern?
The Mediator pattern centralizes communication between a set of objects into a single mediator object, so those objects (colleagues) interact only through the…
What is the Memento Pattern?
The Memento pattern captures and externalizes an object’s internal state so it can be restored later, without violating encapsulation by exposing that state’s…
What is the State Pattern?
The State pattern is a behavioral design pattern that lets an object change its behavior when its internal state changes, by delegating state-specific logic to…
What is the Template Method Pattern?
The Template Method pattern is a behavioral design pattern where a base class defines the fixed skeleton of an algorithm in a single method, deferring specific…
What is the Visitor Pattern?
The Visitor pattern is a behavioral design pattern that lets you add new operations over a fixed set of related classes without modifying those classes, by mov…
Creational vs Structural vs Behavioral Patterns
Creational patterns control how objects are constructed, structural patterns control how classes and objects are composed into larger structures, and behaviora…
Strategy vs State Pattern
The Strategy pattern lets a client choose an interchangeable algorithm at will and injects it into a context, while the State pattern lets an object change its…
What is the Null Object Pattern?
The Null Object pattern replaces the use of a null reference with a real object that implements the same interface but provides neutral, do-nothing behavior, s…
What is the Specification Pattern?
The Specification pattern encapsulates a business rule as a standalone object with an isSatisfiedBy(candidate) method, so rules can be composed with and(), or(…
What is a Hook in the Template Method Pattern?
A hook in the Template Method pattern is an optional, overridable step in the base class algorithm, given a default (often empty or no-op) implementation, that…