Content deleted Content added
m Reverted 1 edit by 2403:4800:382D:CB27:AD8D:DA59:4B79:4C5 (talk) to last revision by 2001:1C01:4E86:9300:C572:77D:CE2D:8AC1 |
No edit summary Tags: Manual revert Reverted Visual edit Mobile edit Mobile web edit |
||
Line 3:
{{more footnotes|date=March 2012}}
In [[object-oriented programming]], the
The ''helper methods'' may be either ''[[abstract method]]s'', in which case subclasses are required to provide concrete implementations, or ''[[Hooking|hook methods]],'' which have empty bodies in the superclass. [[Subclass (computer science)|Subclass]]es can (but are not required to) customize the operation by [[Method overriding|overriding]] the hook methods. The intent of the template method is to define the overall structure of the operation, while allowing subclasses to refine, or redefine, certain steps.<ref name=":2">{{cite book|url=http://shop.oreilly.com/product/9780596007126.do|title=Head First Design Patterns|last2=Freeman|first2=Elisabeth|last3=Sierra|first3=Kathy|last4=Bates|first4=Bert|publisher=O'REILLY|year=2004|isbn=978-0-596-00712-6|editor-last=Hendrickson|editor-first=Mike|volume=1|pages=289, 311|format=paperback|editor-last2=Loukides|editor-first2=Mike|last1=Freeman|first1=Eric|access-date=2012-09-12}}</ref>
|