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 #include ctype h in c++?

878


Explain the difference between overloading and overriding?

862


What is a constructor in c++ with example?

818


How many keywords are used in c++?

776


What is meant by a delegate?

808


What is c++ w3school?

855


How can we read/write Structures from/to data files?

859


What is lazy initialization in c++?

836


What is an html tag?

835


What is searching? Explain linear and binary search.

792


What is the hardest coding language to learn?

802


Comment on assignment operator in c++.

895


What are friend functions in C++?

820


Define a pointer to a data member of the type pointer to pointer?

772


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

3573