So I’m a huge fan of a Generic Template Pattern in .NET but with ColdFusion and am faced with a challenge. How to implement inheritance and polymorphism in ColdFusion. Adobe has a great article on the basics of inheritance in ColdFusion.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=buildingComponents_30.html
In this article they extend an Employee. There are 3 types of employees. Employee, manager, and president. President extends manager, manager extends employee.
Go to the site above and create this example. (or you can download mine from CodePlex)
ColdFusion\Skyhook_ColdFusion_TemplateMethod