home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06181.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-21  |  371.4 KB  |  1 channel  |  11,025 sample rate  |  34 seconds
Transcription: Like objects of built-in type, objects of class type can be declared to be constant. A constant object of class type is one in which no data member should be altered after the object has been initialized. For a built-in type, the compiler can flag any attempt to alter the value of a constant object as a syntax error. An attempt to alter a member of a constant object of class type cannot always be detected by the compiler. Constant member functions are used to protect constant class objects.