หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'function' : function already explicitly overridden
Remarks
A function can only be explicitly overridden once. For more information, see Explicit Overrides.
Example
The following example generates 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;
};