Skip to main content

One doc tagged with "behavioral"

View all tags

Strategy Pattern: Behavioral Design Pattern

The Strategy Pattern is a behavioral design pattern that enables selecting an algorithm's implementation at runtime. It defines a family of algorithms, encapsulates each one, and makes them interchangeable. This pattern lets the algorithm vary independently from clients that use it.