Compiler Warning C4693
'class': a sealed abstract class cannot have any instance members 'Test'
If a type is marked sealed and abstract, it can only have static members.
This warning is automatically promoted to an error. If you wish to modify this behavior, use #pragma warning.
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
};
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