Skip to main content

Posts

Showing posts with the label classes

Object Oriented Programming in Coldfusion using components

Object Oriented programming is one of the famous programming techniques that reduces code redundancy and encourages code re-usability through a methodology called inheritance. Cold fusion has its own way to implement Object Oriented using components. Components in Coldfusion are equivalent the classes in Java. In this tutorial I will try to demonstrate the construction and usage of components in coldfusion. The first step is to create a directory under your web root normally wwwroot called (classes or components or any other name you like to call the physical repository of your components) Follow the example on the Mode component (class) If you have any question please don't hesitate to comment.