C++ Multiple Inheritance - why you no work?
问题 I am trying to figure out an interesting multiple inheritance issue. The grandparent is an interface class with multiple methods: class A { public: virtual int foo() = 0; virtual int bar() = 0; }; Then there are abstract classes that are partially completing this interface. class B : public A { public: int foo() { return 0;} }; class C : public A { public: int bar() { return 1;} }; The class I want to use inherits from both of the parents and specifies what method should come from where via