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

  1. A good programming practice is to declare as constant each member
  2. function that does not alter the values of any data members.  The
  3. client can then declare an object of the class to be constant,
  4. without being concerned whether or not the public member functions
  5. are constant.  An improvement to the PhoneBk class is to declare
  6. as constant the member functions that do not alter the data in a
  7. PhoneBk object.
  8.