Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
转载于:https://www.cnblogs.com/zhtf2014/archive/2012/05/10/2494224.html