SE450: Template Method: The Strategy Pattern [26/35] Previous pageContentsNext page

Describe a function in two parts: the part that varies goes in a separate class.

Here is a class diagram from the GOF:

gof-strategy

Previous pageContentsNext page