Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'override' : cannot override inaccessible base class method 'method'
Remarks
An override can only take place on a function whose access level makes it available in a derived type. For more information, see Explicit Overrides.
Example
The following example generates C3670:
// C3670.cpp
// compile with: /clr /c
public ref class C {
// Uncomment the following line to resolve.
// public:
virtual void g() { }
};
public ref class D : public C {
public:
virtual void f() new sealed = C::g {}; // C3670
};