DEV Community

Discussion on: Design Patterns - Template Method

Collapse
 
carlillo profile image
Carlos Caballero

Hi Scott!

Sorry for you time finding the difference in the codes. In fact, the template method is used only when there are small differences (or steps) in your algorithm. So, I though that a good example could be an algorithm of three steps in which two steps was common and one was difference.

Thanks for your comments ;-)