Changes

Jump to: navigation, search

Template Method

140 bytes added, 15:55, 19 March 2007
Template Method
== Template Method ==
Template Method, a class behavioral pattern, is way to provide provides the general steps of a method, while deferring the implementation to its subclasses. Mostly used Used to encapsulate algorithms, it can help reduce code duplication and maximizes the reuse of subclasses. Generally, an abstract base class is created, defining a template method of an algorithm. Later on, the subclasses can alter and implement the behavior.
== UML Diagram ==
1
edit

Navigation menu