Answer Posted / swetcha
Virtual inheritance is used to avoid multiple copies of a
base class in a multiple-inherited object. However, there
are cases where multiple copies of a base are needed in a
derived class. In such cases, virtual inheritance is
intentionally avoided
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
Why is main an int?
Can c++ be faster than c?
Can you please explain the difference between static and dynamic binding of functions?
How do you clear a set in c++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
How is computer programming useful in real life?
Can I create my own functions in c++?
What are move semantics?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What is the difference between while and do while loop?
What is the exit function in c++?
What is the c++ code?
Why is "using namespace std;" considered bad practice?
Is swift better than c++?
Is string data type in c++?