BLOGG 8
Strategy Pattern
At the end of the lectures on strategy patterns, I was able to understand that a strategy pattern provides a way to configure a class with one of many behaviours. Strategy pattern provides an easier way to extend a model to incorporate new behaviours without recoding the application. This pattern may be applied in a situation wherein you need different variants of an algorithm. GOF defined strategy pattern as “Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.” [GoF]
[GoF] GoF, elements of Reusable Object Oriented Software e-book page 266
Wednesday, 18 April 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment