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
What is multilevel inheritance?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is debug class?what is trace class? What differences are between them? With examples.
class type to basic type conversion
What are the two different types of polymorphism?
Whats is abstraction in oops?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is abstract class in oop?
What does and I oop mean in text?
What does sksksk mean in text slang?
What is abstraction encapsulation?
Why do we use polymorphism?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Explain the advantages of inheritance.
What are classes oop?