Key points :
1. Also known as Policy pattern
2. Collection of Algos (Behavuours)
3. Algo can be selected at runtime
4. Uses composition instead of inheritance
e.g. a class used for validation of incoming data may use strategy pattern in which the validation algo will be decided on the basis of data set
1. Also known as Policy pattern
2. Collection of Algos (Behavuours)
3. Algo can be selected at runtime
4. Uses composition instead of inheritance
e.g. a class used for validation of incoming data may use strategy pattern in which the validation algo will be decided on the basis of data set