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 are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
difference between static and non-static variables?
What is for loop and its syntax?
difference between class and object
10 Answers Chandan, IBM, Magic Soft,
Can bst contain duplicates?
What is polymorphism what are the different types of polymorphism?
why the argument is passed by reference to a copy constructor?example?
Name a typical usage of polymorphism
program for insertion ,deletion,sorting in double link list
What is encapsulation in oop?
what isthe difference between c structure and c++ class
What is inheritance in oop?