Strategy Design Pattern

This is kind of Behavioral Design Pattern(BDP) and as per the BDP definition, “Behavioral patterns describe how the objects behave when they interact with each other” and this design pattern is used when we have number of options to choose our strategy among available strategies. Example: Lets say you have one List of Employees which you want to sort based on your demand. So the Employee class … Continue reading Strategy Design Pattern