Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error C3651

'member' : cannot be used as an explicit override, must be a member of a base class

An explicit override was specified, but the function being overridden was in a type that is not a base type.

For more information, see Explicit Overrides.

The following sample generates C3651:

// C3651.cpp
// compile with: /clr /c
ref class C {
   virtual void func2();

ref class Other {
   virtual void func();

ref class D : public C {
   virtual void func() new sealed = Other::func;   // C3651
   virtual void func2() new sealed = C::func2;   // OK
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.