For the strategy pattern, why do we need a context class to call the appropriate algorithm? Why can't we just do Strategy s = new OperationAdd()? This way, we still use polymorphism.
Why do we need a context class in strategy pattern?
design;design patterns;object oriented design;strategy