Examveda

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

D. A situation where ambiguity arises due to lack of inheritance

Answer: Option C


Join The Discussion

Related Questions on Inheritance in C plus plus