Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Cpp Programming Quiz 122 – Which of the following statements about virtual base classes is correct?

Question: Which of the following statements about virtual base classes is correct?
[A]. It is used to provide multiple inheritance.
[B]. It is used to avoid multiple copies of base class in derived class.[C]. It is used to allow multiple copies of base class in a derived class.
[D]. It allows private members of the base class to be inherited in the derived class.

Answer: Option B