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

  1. You can specify that a member function is const or volatile.  If
  2. you do, this becomes part of the type of that function.  For
  3. example, the type of f is "a const function taking an argument of
  4. type int and returning void", while g is "a volatile function
  5. taking an argument of type int and returning void."  A const
  6. member function cannot modify data members of the class.
  7.