Skip to Main Content
Software Essentials
book

Software Essentials

by Adair Dingle
July 2014
Intermediate to advanced content levelIntermediate to advanced
436 pages
12h 27m
English
Chapman and Hall/CRC
Content preview from Software Essentials
248 Software Essentials
Example 8.12: Resolving Ambiguity: C++ Multiple Inheritance
class StudentEmployee: public Employee, public Student
{ …
public:
int getAge() {return Student::getAge();}
int getSeniority() {return Employee::getAge();}
};
Compilers do not deal well with ambiguity. In translating HLL source
code to executable code, compilers systematically follow long, complex
sets of rules. When faced with a choice, a compiler must be able to look
up the resolution of that choice. Compilers cannot capriciously determine
the selection of alternatives. Hence, the intent of all code statements must
be clear. When resolving a function call, it must be obvious to the com-
piler which function to invoke. Hence, the class designer of the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architect’s Handbook

Software Architect’s Handbook

Joseph Ingeno
Economics-Driven Software Architecture

Economics-Driven Software Architecture

Ivan Mistrik, Rami Bahsoon, Rick Kazman, Yuanyuan Zhang
Software Architect Bootcamp

Software Architect Bootcamp

Raphael Malveau, Ph.D. Thomas J. Mowbray

Publisher Resources

ISBN: 9781439841204