When we implement certain design patterns, they are usually used in combination with other design pattern. Though we have a catalog of design patterns such as Gang of Four (GoF), we do not have a formal specification which mandates the use of such a design pattern along with its related pattern.
In this blog, I’m going to write about one such design pattern – Strategy. It is always useful to implement Strategy along with Factory Method. Both Strategy and Factory Method are Gang of Four (GoF) design patterns.
Strategy design pattern allows selection of an algorithm’s […]