Strategy Pattern Simplified
The Strategy Pattern lets you choose an algorithm (behavior) at runtime without modifying the main class.
Instead of stuffing your code with endless if/else or switch blocks, you move behaviors into separate classes and plug them in when needed.
The ...
shariful-islam.hashnode.dev4 min read