Template method pattern: Difference between revisions

Content deleted Content added
T1mmyb (talk | contribs)
m External links: Spelling in link text
No edit summary
Line 4:
A template method defines the skeleton of an [[algorithm]] in terms of abstract operations which subclasses override to provide concrete behavior.
 
GeneralFirst first of alla class is created that provides the basic steps of an algorithm inby a terms ofusing abstract methods. Latter on, subclasses changeschange the abstract methods to implement real actions. Thus general algorithm is saved in one place, howeverbut the concrete steps may be changed by the subclasses.
 
== Example in Java ==