नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'explicit override' : class contains explicit override 'override' but does not derive from an interface that contains the function declaration
Remarks
When you explicitly override a method, the class that contains the override must derive, directly or indirectly, from the type that contains the function you are overriding.
Example
The following example generates C3254:
// C3254.cpp
__interface I
{
void f();
};
__interface I1 : I
{
};
struct A /* : I1 */
{
void I1::f()
{ // C3254, uncomment : I1 to resolve this C3254
}
};
int main()
{
}