home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06186.TXT < prev    next >
Encoding:
Text File  |  1993-08-18  |  394 b   |  8 lines

  1. Nonstatic constant data members of a class are initialized by the
  2. constructor.  In this example, the value 100 is assigned to the
  3. constant member "veryhot" in the object "warm" when that object is
  4. declared.  Use the same syntax to initialize constant and
  5. nonconstant static data members.  In this example, the static
  6. constant "freeze" stores the temperature at which water turns to
  7. ice.
  8.