| |
| | Constructors |
 | | As an alternative to constructor overloading, constructors which take arguments can be provided with default values for those arguments (Actually, any function which takes arguments can have default values for their arguments). |
 | | If no constructor is declared explicitly in the class, the compiler implicitly provides a constructor which (a) takes no arguments, and (b) is empty (does nothing). |
 | | If your class constructor takes arguments, then, rather than provide a separate default constructor that takes no arguments, it is better to provide a constructor with default arguments that can serve either as a default constructor or as a constructor that takes the arguments it specifies. |
| cs-people.bu.edu /metcalf/is703/constructors.html (1892 words) |
|