Code Refactoring 8

Channel:
Subscribers:
1,330,000
Published on ● Video Link: https://www.youtube.com/watch?v=1Q9ISmCTygU



Duration: 11:00
18,397 views
246


Get the Code: http://goo.gl/RrA3a

In this part of my code refactoring tutorial, I'll show you how to eliminate duplicate code using the template method pattern.

When objects perform similar steps in the same order, that is a sign that a template method is needed. To use it implement the similar code in a template method and allow subclasses to override the behavior that varies.







Tags:
Code Refactoring
template design pattern
template method
design pattern template method
template method pattern
software development patterns
Java (programming Language)