Computer Science, asked by Daddykokkie, 1 day ago

C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.​

Answers

Answered by ZoohaaShahbaz
0

Answer:

The constructor of parent class can be called too times

Answered by os7yadav
1

Answer:

The diamond problem occurs when two superclasses of a class have a common base class. For example, in the following diagram, the TA class gets two copies of all attributes of Person class, this causes ambiguities.

Explanation:

Hello dear ?

How are you?

Similar questions