नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'interface_method' : cannot be used as an explicit override, must be a virtual member function of a base class
Remarks
An attempt was made to perform an explicit override on a member that was not virtual.
For more information, see Explicit Overrides.
Example
The following example generates C3650:
// C3650.cpp
// compile with: /clr
public interface struct I {
void a();
};
public ref class S {
public:
static int f() { return 0; }
static int g() { return 0; }
};
public ref struct T1 : public S, I {
virtual int f() new sealed = S::f; // C3650
virtual int g() { return 0; } // OK does not override S::g
virtual void a() new sealed = I::a {} // OK
};