November 2001
Beginner
1128 pages
29h 12m
English
C++ can be applied to a wide variety of programming problems, and you can't reduce class design to some paint-by-the-numbers routine. However, there are some guidelines that often apply, and this is as good a time as any to go over them, by reviewing and amplifying earlier discussions.
As first discussed in Chapter 13, “Class Inheritance,” the compiler automatically generates certain public member functions. The fact that it does suggests that these member functions are particularly important. Let's look again at some of them now.
A default constructor is one with no arguments, or else one for which all the arguments have default arguments. If you ...