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?
TM + © 2015 Vimeo, LLC. All rights reserved.
Made with k in NYC.
Your content preferences apply to any Vimeo videos you view. Learn more about content preferences in our FAQ.