in Education by

What is Strategy pattern?

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
    What are some strategies that people have had success with for maintaining a change history for data in a ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    What are some strategies that people have had success with for maintaining a change history for data in a ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    Which one of the following is not ID generating strategy using @GeneratedValue annotation? (a) Auto (b) Manual ... Annotations of Java Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    I'm writing a game that's a variant of Gomoku. Basically a tic tac toe on a huge board. Wondering if anyone ... [self put randomly]; } Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me what is Digital Marketing Strategy? Select the correct answer from above options...
asked Jan 10, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me how to create a Digital Marketing Strategy? Select the correct answer from above options...
asked Jan 10, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me why you need a Digital Marketing strategy? Select the correct answer from above options...
asked Jan 10, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me how Digital Marketing helps marketing strategy? Select the correct answer from above options...
asked Jan 10, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me what is value proposition in a digital marketing strategy? Select the correct answer from above options...
asked Jan 10, 2022 in Education by JackTerrance
0 votes
    Help Sam create his own online business strategy, by selecting the correct steps he should take Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    in wich network strategy all nodes act as client and servers?? Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
    in wich network strategy all nodes act as client and servers?? Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    The strategy of making processes that are logically runnable to be temporarily suspended is called : Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    in wich network strategy all nodes act as client and servers?? Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    Which one of the following is not ID generating strategy using @GeneratedValue annotation? (a) Auto (b) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...