home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06182.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-21  |  325.4 KB  |  1 channel  |  11,025 sample rate  |  30 seconds
Transcription: To declare a member function constant, insert the keyword const after the argument list. When the function is not in line, this keyword must appear in both the declaration and the definition. A constant member function does not compile successfully if it attempts to assign a value directly to any data member of its class. As with non-member constants, it is still possible to assign a value to a member by casting it to a non-constant constant type.