home *** CD-ROM | disk | FTP | other *** search
- Nonstatic constant data members of a class are initialized by the
- constructor. In this example, the value 100 is assigned to the
- constant member "veryhot" in the object "warm" when that object is
- declared. Use the same syntax to initialize constant and
- nonconstant static data members. In this example, the static
- constant "freeze" stores the temperature at which water turns to
- ice.
-