So today I learnt the Template Design Pattern
Pretty neat pattern- or maybe its the guys at Head First who know how to get it into your head
So you have a bunch of algorithm to implement
Form a template method which outlines the generic algorithm
Put the common code in concrete methods in the abstract class- all variable code becomes abstract method- which are then overriden by the subclasses
and there you have a Template Design Pattern !!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment