Check out example codes for "c++ multiple inheritance diamond problem". It will help you in understanding the concepts better.

Code Example 1

class Parent;
class a : virtual public Parent; //add virtual
class b : virtual public Parent; //add virtual
class c : public a, public b;

Learn ReactJs, React Native from akashmittal.com