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

  1. Class definitions in C++ often include several constructors.
  2. Unless a class is very small or used for a very specific purpose,
  3. a good programming practice is to include a default constructor
  4. and a copy constructor in the class definition, as well as
  5. conversion constructors and other constructors that are
  6. appropriate for objects of that class.  This practice avoids
  7. situations where the compiler cannot supply a necessary default
  8. constructor, or where the compiler-supplied constructor does not
  9. correctly create objects of the class.
  10.