Compiler Error C3655
'function' : function already explicitly overridden
A function can only be explicitly overridden once. For more information, see Explicit Overrides.
The following sample generates C3655:
// C3655.cpp
// compile with: /clr /c
public ref struct B {
virtual void f();
virtual void g();
};
public ref struct D : B {
virtual void f() new sealed = B::f;
virtual void g() new sealed = B::f; // C3655
// try the following line instead
// virtual void g() new sealed = B::g;
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for