+1 vote
in C Plus Plus by

What is virtual inheritance in C++?
a) C++ technique to enhance multiple inheritance
b) C++ technique to ensure that a private member of the base class can be accessed somehow
c) C++ technique to avoid multiple inheritances of classes
d) C++ technique to avoid multiple copies of the base class into children/derived class

1 Answer

0 votes
by

Correct answer is :- Answer: d -C++ technique to avoid multiple copies of the base class into children/derived class

Explanation: Virtual inheritance is a C++ technique with which it ensures that a derived class contains only one copy of the base class’s variables. Refer Wikipedia for more info.

Related questions

+1 vote
asked Oct 19, 2022 in C Plus Plus by AdilsonLima
+2 votes
asked Jan 21, 2021 in C Plus Plus by SakshiSharma
...