PART 2
Nirdosh, Milan
Strategy Pattern
Intent:
"Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm very independently from clients use it "
Also known as Policy.
Strategy without Pattern:
Open Close Principal : Software Entities should be open for extension, but closed for modification
Non Usable: Strategy is not usable by any other context
Strategy with Pattern: