Describe a function in two parts: the part that varies goes in a subclass.
Here is a class diagram from the GOF: