• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part IX:  Appendixes  >  Creating and Using a Java Class

Creating and Using a Java Class

To use Java in ColdFusion effectively, you need to handle the methods and properties defined in a Java class. Let’s look at how to use the properties and methods in a simple Employee class using ColdFusion. The Employee class contains three properties, listed in Table C.2.

Table C.2. Properties in the Employee Class
Property Use Public or Private
FirstName Retrieves or modifies the first name of an employee Public
LastName Retrieves or modifies the last name of an employee Public
Salary Retrieves the salary of an employee Private



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint