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
Answer:A
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
Explanation: All of the mentioned ways are used to implement strategy pattern.