Content deleted Content added
→ColdFusion: Updated color coding to script |
→ColdFusion: Added object creation example |
||
Line 355:
[[ColdFusion]] uses a method named '<code>init</code>' as a constructor method.
'''Cheese.cfc'''
<source lang="javascript">
component displayname="Cheese" {
Line 366 ⟶ 367:
}
}
</source>
Create instance of a cheese.
<source lang="javascript">
myCheese = new Cheese( 'Cheddar' );
</source>
|