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

12.4. Object Methods

Methods are functions that are associated with objects and are typically used to perform an object-related task or access an object's data (i.e., set and retrieve its properties). We invoke methods with the function call operator, ( ), using the dot operator to separate the method name from its object:

objectName.methodName( )


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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