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

Is html an oop?

0 Answers  


What is difference between oop and pop?

0 Answers  


What is the difference between procedural programming and oops?

0 Answers  


what is difference between objects and function

3 Answers  


What is difference between inheritance and polymorphism?

0 Answers  






What is interface? When and where is it used?

0 Answers  


Why we are use # in begning of programme of c++.

2 Answers   Syntel,


Explain virtual inheritance?

0 Answers  


What is multiple inheritance?

9 Answers   TCS,


How is polymorphism achieved?

0 Answers  


Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.

13 Answers   Wipro,


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

0 Answers  


Categories