+1 vote
in Software Architecture by (75.2k points)
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

1 Answer

0 votes
by (46.2k points)
Correct option is (c) All of the mentioned

The best I can explain: All of the mentioned ways are used to implement strategy pattern.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...