Archives for Design Patterns
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…
Factory Design Patterns and Open-Closed Principle (OCP), the ‘O’ in SOLID
Factory Design patterns are Creational patterns and deals with how the objects are created. There are three design patterns, namely, Simple Factory, Factory Method and Abstract Factory design patterns. All…