Embed presentation
Downloaded 57 times











The document discusses the strategy pattern, which defines a family of algorithms, encapsulates each one, and makes them interchangeable. This allows the algorithm to vary independently from clients that use it. The strategy pattern is applicable when there is a need for multiple classes that differ only in their behavior. It allows selecting different algorithms at runtime for common situations where classes vary by behavior.









