Implementation Issues
Context and Strategy interfaces must be
designed carefully so that the needed data can be
passed/accessed efficiently and new algorithms
can be added without having to extend an
interface.
There are two main variants:
strategy.algorithm(data1,data2,…)
Strategy interface may get complex
because it must pass in the needed data for all
supported algorithms (whether they are simple or
complex).strategy.algorithm(this)
Context interface may have to be
extended to let strategies do their work
and access the needed
data.