הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'override' : override specifier cannot be repeated
Remarks
An explicit override keyword can only be specified once. For more information, see Explicit Overrides.
Example
The following example generates C3656:
// C3656.cpp
// compile with: /clr /c
public interface struct O {
int f();
};
public ref struct V : O {
int f() override override { return 0; } // C3656
// try the following line instead
// int f() override { return 0; }
};