Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
'class': a sealed abstract class cannot have any instance members 'Test'
Remarks
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 example generates C4693.
// C4693.cpp
// compile with: /clr /c
public ref class Public_Ref_Class sealed abstract {
public:
void Test() {} // C4693
static void Test2() {} // OK
};