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

Compiler Error C3652

Error Message

'override' : a function that explicitly overrides must be virtual

A function that does an explicit override must be virtual. For more information, see Explicit Overrides.

The following sample generates C3652:

// C3652.cpp
// compile with: /clr /c
public interface class I {
   void f();

public ref struct R : I {
   void f() = I::f {}   // C3652
   // try the following line instead
   // virtual void f() = I::f {}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.