As promised, this video removes the duplication in the add and subtract classes by introducing an abstract basse class.

The end result is a use of the template method pattern.

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…