Template Method Pattern
Definition-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
What’s template? It’s just a method; more specially, it’s a method that defines an algorithm as a set of steps. One or more of these steps is defined to be abstract and implemented by a subclass.
Hooked on Template Method
A hook is a method that is declared in the abstract class, but given an empty or default implementation. This give subclass the ability to “hook into” the algorithm at various points.
Example: JFrame,Applets