Export (0) Print
Expand All
Expand Minimize

Compiler Error C3609

Error Message

'member': a sealed function must be virtual

sealed is only allowed on a class, struct, or member function marked virtual.

The following sample generates C3609:

// C3609.cpp
// compile with: /clr /c
ref class C {
   int f() sealed;   // C3609
   virtual int f2() sealed;   // OK
};

Managed Extensions for C++

The following sample generates C3609:

// C3609c.cpp
// compile with: /clr:oldSyntax /c
__gc class C {
   __sealed int f();   // C3609
   __sealed virtual int f2();   // OK
};

Community Additions

ADD
Show:
© 2014 Microsoft