May 2002
Beginner
320 pages
6h 18m
English
Prior to this lesson, you'd seen the use of overloading already—with the constructor and copy constructor for aRequest (Lesson 17, “Classes: Structures with Functions”).
A constructor is a member function with a name that happens to be the name of the class. Like any overloaded member function, it has a signature that the compiler uses for overload resolution. As with overloaded functions, you shouldn't use default arguments for overloaded constructors.
Read now
Unlock full access