Compiler Warning C4693
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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.
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
};
Show: