Edit

Share via


Compiler Error C3244

'method' : this method was introduced by 'interface' not by 'interface'

You tried to explicitly override a member that does not exist in the specified interface but does exist in another base class.

The following sample generates C3244:

// C3244.cpp
#pragma warning(disable:4199)

__interface IX15A {
   void f();
};

__interface IX15B {
   void g();
};

class CX15 : public IX15A, public IX15B {
public:
   void IX15A::f();
   void IX15B::g();
};

void CX15::IX15A::g()   // C3244 occurs here
{
}