In object-oriented programming, the template pattern refers to a pattern where the parent defines the steps of an algorithm and allows child classes to override some steps of the algorithm without giving them the ability to change the order of the steps.
A good example of the template pattern is how the Actor executes in the Actor Framework. When the Actor has launched the Pre Launch Init method always executes first, then the Actor Core method. Then when the Actor is stopped the algorithm will execute the Stop Core method, and if launched by another Actor, it will send a Last Ack message to its launching Actor. These methods always execute in this order. However, these methods can be overridden to modify behavior.
- Template pattern on Wikipedia
- Applying Common Object-Oriented Design Patterns to LabVIEW: Template Pattern by Elijah Kerry