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

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

Here is a class diagram from the GOF:

gof-tmethod

Previous pageContentsNext page