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

What are structs in c++?

0 Answers  


Why c++ is not a pure oop language?

0 Answers  


What is singleton pattern in c++?

0 Answers  


How many different levels of pointers are there?

0 Answers   Genpact,


Write a function that swaps the values of two integers, using int* as the argument type?

0 Answers  


What is using namespace std in c++?

0 Answers  


Distinguish between a # include and #define.

0 Answers  


List the merits and demerits of declaring a nested class in C++?

0 Answers  


What is purpose of new operator?

0 Answers  


Why is "using namespace std;" considered bad practice?

0 Answers  


Should I learn c or c++ or c#?

0 Answers  


Why are arrays usually processed with for loop?

0 Answers  


Categories