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 |
Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345
what is a binary overloading
What is a class oop?
Write 7 differences between "Public" function and "Private" function?
What is the problem with multiple inheritance?
what is function over loading?
What is overriding in oop?
what is the difference between javap and jad utility
What is byval and byref? What are differences between them?
what are three tenets of object orinted Systems?Why they call like that ? Please answer me. Advance thanks.
What is pointer in oop?
what is difference b/w object based and object oriented programming language?
18 Answers Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,