Template Method Pattern

In software engineering, the template method pattern is a behavioral design pattern that defines the program skeleton of an algorithm in a method, called template method, which defers some steps to subclasses. It lets one redefine certain steps of an algorithm without changing the algorithm's structure. This use of "template" is unrelated to C++ templates.

Read more about Template Method Pattern:  Introduction, Usage

Famous quotes containing the words method and/or pattern:

    There is no method but to be very intelligent.
    —T.S. (Thomas Stearns)

    For what is wedlock forcèd, but a hell,
    An age of discord and continual strife?
    Whereas the contrary bringeth bliss,
    And is a pattern of celestial peace.
    William Shakespeare (1564–1616)