Parameterize Method

Several methods do similar things but with different values contained in the method body.

Create one method that uses a parameter for the different values.

image/svg+xml Employee fivePercentRaise()tenPercentRaise() Employee raise(percentage)

inverse of Replace Parameter with Explicit Methods

Corrections

Clarifying the Mechanics

I've since (after a suggestion from Prof Bernd Kahlbrandt) found better mechanics for this refactoring (changes are in bold)