Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning C4693

Error Message

'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.

Example

The following sample generates C4693.

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

Community Additions

ADD
Show:
© 2015 Microsoft