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

Whats is abstraction in oops?

597


What is class encapsulation?

618


What is polymorphism and types?

611


Write a c++ program to display pass and fail for three student using static member function

2824


What is polymorphism in oops with example?

538






How do you define a class in oop?

640


What are the features of oop?

645


What are functions in oop?

593


What is inheritance and how many types of inheritance?

633


What does oop mean in snapchat?

698


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1953


What is encapsulation selenium?

560


Why is there no multiple inheritance?

579


Why is encapsulation used?

584


Why is destructor used?

589