Vidyalelo
C++ Programming · Q21

Inheritance in C++

Programming · C++ Programming · question 21

Q21

What is the diamond problem in C++ inheritance?

A.
A situation where the derived class cannot override the base class method
B.
A situation where the base class cannot be inherited by more than one derived class
C.
A situation where ambiguity arises due to multiple inheritance chains
Answer
D.
A situation where ambiguity arises due to lack of inheritance

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board