What is Virtual Inheritance?

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


Please Help Members By Posting Answers For Below Questions

What is data structure in c++?

667


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

622


Explain explicit container.

635


How do you generate a random number in c++?

606


Explain unexpected() function?

588






What do you mean by inheritance in c++? Explain its types.

617


What is prototype for that c string function?

694


What do you mean by stack unwinding in c++?

732


What is an incomplete type in c++?

772


What is expression parser in c++

1890


Write a program to show polymorphism in C++?

636


What is the difference between mutex and binary semaphore?

615


What is double in c++?

564


What's the hardest coding language?

579


What's c++ used for?

602