home *** CD-ROM | disk | FTP | other *** search
- Class definitions in C++ often include several constructors.
- Unless a class is very small or used for a very specific purpose,
- a good programming practice is to include a default constructor
- and a copy constructor in the class definition, as well as
- conversion constructors and other constructors that are
- appropriate for objects of that class. This practice avoids
- situations where the compiler cannot supply a necessary default
- constructor, or where the compiler-supplied constructor does not
- correctly create objects of the class.
-