Strategy Pattern and Factory Patttern
Strategy Pattern
The Strategy pattern is useful when you want to define a family of algorithms, encapsulate each one, and make them interchangeable. The Strategy pattern lets the algorithm vary independently from clients that use it.
Factory Pattern
...
alikulov.com2 min read