home *** CD-ROM | disk | FTP | other *** search
- You can specify that a member function is const or volatile. If
- you do, this becomes part of the type of that function. For
- example, the type of f is "a const function taking an argument of
- type int and returning void", while g is "a volatile function
- taking an argument of type int and returning void." A const
- member function cannot modify data members of the class.
-