Difference between revisions of "Template Method"

From CDOT Wiki
Jump to: navigation, search
(Description)
(Template Method)
Line 2: Line 2:
  
 
== Template Method ==
 
== Template Method ==
 +
Template Method, a class behavioral pattern, is way to provide general steps of a method, while deferring the implementation to its subclasses. Mostly used to encapsulate algorithms, it can help reduce code duplication and maximizes the reuse of subclasses.
  
 
== UML Diagram ==
 
== UML Diagram ==

Revision as of 15:42, 19 March 2007

Template Method

Template Method, a class behavioral pattern, is way to provide general steps of a method, while deferring the implementation to its subclasses. Mostly used to encapsulate algorithms, it can help reduce code duplication and maximizes the reuse of subclasses.

UML Diagram

Code Samples

References

Links

BTP600