'type' : 未明確宣告為抽象,但具有抽象函式
備註
包含 抽象函式的類型應該本身標示為抽象 。
範例
下列範例會產生 C4570。
// C4570.cpp
// compile with: /clr /W3 /c
ref struct X { // C4570
// try the following line instead
// ref class X abstract {
virtual void f() abstract;
};
'type' : 未明確宣告為抽象,但具有抽象函式
包含 抽象函式的類型應該本身標示為抽象 。
下列範例會產生 C4570。
// C4570.cpp
// compile with: /clr /W3 /c
ref struct X { // C4570
// try the following line instead
// ref class X abstract {
virtual void f() abstract;
};