0 votes
15 views
in Education by (51.6k points)

What is Strategy pattern?

1 Answer

0 votes
by (51.6k points)

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
1 answer 14 views
0 votes
1 answer 32 views
0 votes
1 answer 24 views
0 votes
1 answer 24 views
0 votes
1 answer 14 views
0 votes
1 answer 44 views
0 votes
1 answer 18 views
0 votes
1 answer 13 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 18 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 13 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 14 views
0 votes
1 answer 11 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 11 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 14 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 13 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 15 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 12 views
0 votes
1 answer 13 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 12 views
0 votes
1 answer 11 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 9 views
0 votes
1 answer 16 views
asked Nov 7, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 14 views
...