Chris Smith

My blog for anything tech
posts - 6 , comments - 0 , trackbacks - 0

CFC Inheritance in ColdFusion

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

Print | posted on Tuesday, December 11, 2012 4:14 PM |

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 
 

Powered by: