Content deleted Content added
→ColdFusion Markup Language (CFML): lang="cfc" |
|||
Line 174:
'''Cheese.cfc'''
<syntaxhighlight lang="
component {
// properties
Line 188:
Create instance of a cheese.
<syntaxhighlight lang="
myCheese = new Cheese( 'Cheddar' );
</syntaxhighlight>
Line 194:
Since ColdFusion 10,<ref>[https://wikidocs.adobe.com/wiki/display/coldfusionen/cfcomponent CFComponent]</ref> CFML has also supported specifying the name of the constructor method:
<syntaxhighlight lang="
component initmethod="Cheese" {
// properties
|