What is ambiguity in c++

Answers were Sorted based on User's Feedback



What is ambiguity in c++..

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

What is ambiguity in c++..

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

What is ambiguity in c++..

Answer / deepthi

Multilevel inheritance

Is This Answer Correct ?    19 Yes 19 No

What is ambiguity in c++..

Answer / philemon

ambiguity is a compile error which occurs when multiple base classes are inherited

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More OOPS Interview Questions

How do you define social class?

0 Answers  


what is abstract class ? when is used in real time ? give a exp

5 Answers  


What is the purpose of polymorphism?

0 Answers  


Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3

3 Answers   Accenture, Cognizant, IBM,


Why is static class not inherited?

0 Answers  






What is class and object in oops?

0 Answers  


What does I oop mean?

0 Answers  


write a function that takes an integer array as an input and finds the largest number in the array. You can not sort array or use any API or searching needs?

2 Answers   IBMS, Zycus Infotech,


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

0 Answers  


diff between Virtual mathod and abstract method?

1 Answers  


difference between static and non-static variables?

2 Answers  


What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.

2 Answers  


Categories