หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'function_1' : function does not override 'function_2'
Remarks
When using explicit override syntax, the compiler generates an error if a function is not overridden. See Explicit Overrides for more information.
Example
The following example generates C3671.
// C3671.cpp
// compile with: /clr /c
ref struct S {
virtual void f();
};
ref struct S1 : S {
virtual void f(int) new sealed = S::f; // C3671
virtual void f() new sealed = S::f;
};