Export (0) Print
Expand All
Expand Minimize

Compiler Warning C4693

'class': a sealed abstract class cannot have any instance members 'Test'

If a type is marked sealed and abstract (Visual C++), it can only have static members.

The following sample generates C4693.

// C4693.cpp
// compile with: /clr /c
public ref class Public_Ref_Class sealed abstract {
   void Test() {}   // C4693
   static void Test2() {}   // OK

Community Additions

© 2014 Microsoft