thanassis.com
home
blog
Online Games
Sudoku
Ivory Tower
Web Hangman
Software
Java
Object Oriented
Mobiles / J2ME
Research
C.S. Resources
Galleries
Greece
Music
Photography
Art
Personal
About me
Useful Links
Contact
Site
Downloads
My other sites
Thanassis.gr
Djangopedia
Kilogames
Xoocle
TrainJava
GameAnatomy
Latest News
Template Method
Where it can be used :
Where a portion of an algorithm to be used in a class is dependant on the type of an object of its subclasses.
In systems that go through a re-factoring stage.
Examples of use
Any algorithm that depends on the type of object it is applied to.
Benefits
Greater flexibility and reuse.
Easy to modify an algorithm to take into account other types of objects (of the same hierarchy).
Previous slide
Next slide
Back to first slide
View graphic version
Web
this site
Thanassis Blog News
In the News
Deep impact smashes comet
3 Florida shark attacks in a week
Mad Cow
summit in Scotland
Search the Archives