Subscribe for more content: http://vid.io/xqZ4
Check out our other videos: http://vid.io/xqZ9
This episode explains the strategy design pattern and how to use it in a real world application. The strategy design pattern is a behavioral pattern that allows for an interchangeable execution path at runtime.
The strategy pattern is useful for situations where it is necessary to dynamically swap the algorithms used in an application. The strategy pattern is intended to provide a means to define a family of algorithms, encapsulate each one as an object, and make them interchangeable.
In software engineering, a design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. A design pattern is not a finished design that can be transformed directly into source or machine code.