編譯器錯誤 C3655
'function' : 函式已明確覆寫
函式只能明確覆寫一次。 如需詳細資訊,請參閱 明確覆寫。
下列範例會產生 C3655:
// C3655.cpp
// compile with: /clr /c
public ref struct B {
virtual void f();
virtual void g();
};
public ref struct D : B {
virtual void f() new sealed = B::f;
virtual void g() new sealed = B::f; // C3655
// try the following line instead
// virtual void g() new sealed = B::g;
};