Question: Question 1. ( True or False) a) Strategy pattern provides an alternative to the multiple conditional statements by putting the conditional branches into their own
Question 1. ( True or False)
a) Strategy pattern provides an alternative to the multiple conditional statements by putting the conditional branches into their own strategy class.
b) Strategy pattern is applicable when you have different variants of an algorithm that reflects different space/time trade-offs.
c) Concrete strategy classes differ in both their behaviour and their interfaces.
d) Strategy pattern eliminates the communication overhead between algorithms and the data they use.
e) Using Strategy pattern might increase the number of objects in an application.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
