What is ambiguity in c++

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define social class?

603


What does no cap mean?

592


What is ambiguity in inheritance?

625


Get me an image implementation program.

1561


What is object and example?

604






What is overriding vs overloading?

590


Is oop better than procedural?

576


Why is polymorphism needed?

605


What is oops concept with example?

582


what's the basic's in dot net

1742


What is solid in oops?

617


write a programe to calculate the simple intrest and compund intrest using by function overlading

1670


Which is better struts or spring?

624


How do you use inheritance in unity?

595


Can an interface inherit a class?

565