Under what conditions is multiple inheritance not recommended?



Under what conditions is multiple inheritance not recommended?..

Answer / ackmed

If you derive from more than one base classes with the same
parent, then that parent should be a virtual base class.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More C++ General Interview Questions

Is java a c++?

0 Answers  


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

0 Answers  


What is the difference between object-oriented programming and procedural programming?

0 Answers  


How would you implement a substr() function that extracts a sub string from a given string?

0 Answers  


What are c++ variables?

0 Answers  






What is the this pointer?

0 Answers  


Are there any special rules about inlining?

0 Answers  


Do we have private destructors?

12 Answers   Symphony, TCS,


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

0 Answers  


Explain the problem with overriding functions

0 Answers  


Declare a class vehicle and make it an abstract data type.

0 Answers  


What is the purpose of extern storage specifier?

0 Answers  


Categories