home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A05152.TXT < prev    next >
Encoding:
Text File  |  1993-11-06  |  518 b   |  10 lines

  1. If a member function is defined outside the class, you must
  2. declare the member function inside the class.  Notice the
  3. class-name, "Weather", followed by the scope resolution operator
  4. in the definition of the function redoit().  This is the syntax
  5. for indicating that this function is a member of the class
  6. "Weather".  Defining member functions outside the class is often a
  7. good idea, especially if the function body is large.  Programmers
  8. using your class then see only the interface in the class
  9. definition.
  10.