Strategy Pattern

The Strategy Pattern is a behavioral design pattern that decouples the client from its implementation by encapsulating algorithms in separate classes. This pattern allows the client to select and use different algorithms interchangeably at runtime, promoting flexibility and cleaner code.