home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06192.TXT < prev    next >
Encoding:
Text File  |  1993-08-18  |  608 b   |  11 lines

  1. Here, a volatile member function countchar() returns, as an
  2. integer, the number of characters in an object of type IOBuffer.
  3. Notice that the syntax is similar to the syntax for declaring a
  4. member function to be constant.  The syntax rules for volatile
  5. objects of class type, and for volatile data members, are similar
  6. to those for constant objects and members.  The difference is
  7. that, unlike constants, values of volatile objects and data
  8. members can be changed during program execution.  A member
  9. function can be declared both volatile and constant, as is the
  10. inspect() function in this example.
  11.