in Education by

What is Strategy pattern?

Please log in or register to answer this question.

1 Answer

0 votes
by

What is Strategy pattern?

In Strategy pattern, a class behavior or its algorithm can be changed at run time. This type of design pattern comes under behavior pattern.

In Strategy pattern, we create objects which represent various strategies and a context object whose behavior varies as per its strategy object. The strategy object changes the executing algorithm of the context object.

Related questions

0 votes
asked Jan 10, 2022 in Education by JackTerrance
0 votes
asked Dec 24, 2021 in Education by JackTerrance
0 votes
asked Oct 24, 2021 in Education by JackTerrance
...