February 2005
Beginner to intermediate
272 pages
4h 53m
English
Overloading and overriding have nothing whatsoever to do with each other. Nothing. They are entirely different concepts. Ignorance of this difference, or simply sloppy use of terminology, has caused untold confusion and given rise to countless bugs.
Overloading occurs when two or more functions in the same scope have the same name and different signatures. A function’s signature consists of the number and type of its declared arguments (otherwise known as “formal” arguments). When the compiler looks up a function name and finds more than one function with that name in a scope, it selects among the available candidates in that scope for the one whose formal arguments best match the actual arguments ...
Read now
Unlock full access