(a) Does multiple inheritance leads to ambiguity? If yes, discuss by…
Previous year question for Object Oriented Programming Using C++.
Question
(a) Does multiple inheritance leads to ambiguity? If yes, discuss by putting up suitable scenario how it can be removed. (10)
(b) Justify the following statement with the help of a suitable example :-
"In a class hierarchy of several levels if we want a function at any level to be called through a base class pointer then the function must be declared as virtual in the base class." (10)
- Year: 2022
- Subject: Object Oriented Programming Using C++