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 the difference between the indirection operator and the address of oper-ator?

604


What are c++ stream classes?

553


Will c++ be replaced?

546


Can we declare a base-class destructor as virtual?

584


Can I make ios apps with c++?

555






What is a catch statement?

579


What is the error in the code below and how should it be corrected?

302


Write a program which uses Command Line Arguments

631


What is public, protected, private in c++?

651


What is the difference between while and do while loop?

554


What is the use of cmath in c++?

586


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

563


Is java a c++?

558


Define pointers?

607


What are c++ files?

575