Behavioral-Patterns

11 articles
Visitor Pattern A behavioral design pattern that lets you add new operations to existing object structures without modifying …Template Method Pattern A behavioral design pattern that defines the skeleton of an algorithm in a base class, letting subclasses …Strategy Pattern A behavioral design pattern that defines a family of algorithms, encapsulates each one, and makes them …State Pattern A behavioral design pattern that allows an object to alter its behavior when its internal state changes, …Observer Pattern A behavioral design pattern that defines a one-to-many dependency between objects so that when one object …Memento Pattern A behavioral design pattern that captures and externalizes an object's internal state so it can be restored …Mediator Pattern A behavioral design pattern that defines an object that encapsulates how a set of objects interact, promoting …Iterator Pattern A behavioral design pattern that provides a way to access elements of an aggregate object sequentially without …Interpreter Pattern A behavioral design pattern that defines a representation for a language's grammar and provides an interpreter …Command Pattern A behavioral design pattern that encapsulates a request as an object, allowing parameterization of clients …Chain of Responsibility Pattern A behavioral design pattern that passes a request along a chain of handlers, where each handler decides …