Lecture overview -- Keyboard shortcut: 'u'  Previous page: Multiple inheritance - issues and C++ solutions -- Keyboard shortcut: 'p'  Next page: Replicated base class -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 4 - Page 15 : 24
Notes about C++
Abstraction Mechanisms, Part 2
Multiple inheritance: Ambiguities

The scope operator can be used to solve ambiguities in multiple base classes

To see this image you must download and install the SVG plugin from Adobe.In Firefox please consultthis page.

Use of the function operator() is ambiguous

y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/multiple-inh/ambiguities/amb-1.ccAmbiguity - the compiler locates the problem.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/multiple-inh/ambiguities/amb-2.ccAmbiguity resolution in the client of C.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/multiple-inh/ambiguities/amb-3-problems.ccInvolving polomorphism - but there is a problem.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/multiple-inh/ambiguities/amb-3.ccInvolving polomorphism - problem solved.