Modified Strategy Design Pattern
- by Samuel Walker
I've started looking into Design Patterns recently, and one thing I'm coding would suit the Strategy pattern perfectly, except for one small difference.
Essentially, some (but not all) of my algorithms, need an extra parameter or two passed to them.
So I'll either need to
pass them an extra parameter when I invoke their calculate method
or
…