inheritance in c++ diamond code example
Example: c++ multiple inheritance diamond problem
class Parent;
class a : virtual public Parent; //add virtual
class b : virtual public Parent; //add virtual
class c : public a, public b;
class Parent;
class a : virtual public Parent; //add virtual
class b : virtual public Parent; //add virtual
class c : public a, public b;