home *** CD-ROM | disk | FTP | other *** search
- 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.
-