+ 1

How to handle the error due to ambiguity in multiple inheritance in c++ in c++ programming language

20th May 2019, 8:18 AM
Aadarsh Gupta
Aadarsh Gupta - avatar
2 Respostas
+ 4
If you are referring to the Diamond problem then use virtual inheritance. class Base{... class A: virtual public Base{.... class B: virtual public Base {.... class Derived : public A,public B{....
20th May 2019, 10:49 PM
AZTECCO
AZTECCO - avatar
+ 2
Use virtual base classes
20th May 2019, 10:27 AM
Abhinav