I have a confusion on multiple inheritance. Suppose, I have classes A,B,C each having the same method . Now, how does X will know which method to call ?
class A { /* ... */ };
class B { /* ... */ };
class C { /* ... */ };
class X : public A, public B, public C { /* ... */ };