What is ambiguity in c++
Answers were Sorted based on User's Feedback
Answer / neha yadav
ambiguity means "confusion" and "two means"
ambiguity is created in data function overloading and multiple inheritance.
| Is This Answer Correct ? | 41 Yes | 5 No |
Answer / h4ck3r
In multiple inheritance, there may be possibility that a class may inherit member functions with same name from two or more base classes and the derived class may not have functions with same name as those of its base classes. If the object of the derived class need to access one of the same named member function of the base classes then it result in ambiguity as it is not clear to the compiler which base’s class member function should be invoked. The ambiguity simply means the state when the compiler confused.
| Is This Answer Correct ? | 19 Yes | 1 No |
Answer / philemon
ambiguity is a compile error which occurs when multiple base classes are inherited
| Is This Answer Correct ? | 3 Yes | 3 No |
What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++
What are properties in oop?
monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?
What is function overloading and operator overloading?
What is the main difference between C++ and Java
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
what i oops concept, how many languages supports oops concept?
What is multilevel inheritance?
what is inline function?
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,
Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.