When there is a need to implement strategy pattern?
(a) When a single task is implemented in variety of ways
(b) When it is dependent on nature of inputs
(c) All of the mentioned
(d) None of the mentioned
This question was addressed to me in an interview.
I would like to ask this question from Exploiting Patterns in Software Architecture topic in portion Unit Operations of Software Architecture