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 an array and a list?

579


Is java a c++?

550


What is #include cstdlib in c++?

647


Please explain the reference variable in c++?

611


What is an overflow error?

608






What is setf in c++?

570


How can a called function determine the number of arguments that have been passed to it?

652


Which bit wise operator is suitable for checking whether a particular bit is on or off?

597


Is c++ primer good for beginners?

578


What is a down cast?

596


Explain terminate() and unexpected() function?

618


What is the benefit of learning c++?

541


What is srand c++?

566


What is encapsulation in c++?

658


Can I learn c++ without c?

593