October 2017
Intermediate to advanced
210 pages
5h 32m
English
The strategy pattern tells us that we should encapsulate the algorithm in a type that conforms to a strategy protocol. We can then provide instances of the strategy types for use by the invoker. The invoker will use the interface provided by the protocol to invoke the algorithm.
Read now
Unlock full access