Adobe Coldfusion 11 Tutorials | Encapsulated Variables & Decoding Methods | Chap-2 | Part-4



Adobe Coldfusion 11 Tutorials | Encapsulated Variables & Decoding Methods | Chap-2 | Part-4

Adobe Coldfusion 11 Tutorials | Encapsulated Variables & Decoding Methods | Chap-2 | Part-4

This video lesson will take about the getter and the setter methods of Adobe Coldfusion. It will also explain how are these methods helping us to create encapsulated variables, which will be protected from outside manipulation. No one can directly manipulate the values stored inside the attributes unless the getter and the setter methods are used explicitly. We also discuss about about returning values in a method once the data inside the method has been processed. This is done with using the return keyword and any type of attributes, whether it be structured or arrayed, can be referred to with the this keyword. It will assist as a helpful shortcut. A method/function can be compared with a factory producing clothes. It takes in raw materials, processes them, utilizes them to make clothes and finally produces them for the market. The final production procedure can be compared with the the return statement. In the final stage, the factory packages the clothes into boxes for shipping or transportation, likewise a return statement produces the final value after the processing is done by the internal statements of the method or the function. Method’s can take up any name and they are followed by a opening and closing bracket along with the opening and ending curly braces that forms the body.

SUBSCRIBE…..SHARE…..LIKE