Strategy Design Pattern and Single Responsibility and Open-Closed Principles
Strategy design pattern is widely implemented to achieve interchangeable algorithmic behavior at runtime. As we know strategy pattern uses aggregation or composition instead of inheritance. It is a behavioral design pattern. The behaviors are defined in separate interfaces and the encapsulating classes that implement this interface. Generally most of the SOLID principles can be identified… Read More »