opomba,
Dostop do te strani zahteva pooblastilo. Poskusite se vpisati alispremeniti imenike.
Dostop do te strani zahteva pooblastilo. Poskusite lahko spremeniti imenike.
'method' : cannot reduce accessibility of a virtual method in a managed or WinRT type
Remarks
A class that implements a virtual method from a base class or any method from an interface cannot reduce the access of that method.
Note that all methods in an interface are public.
Example
The following example generates C3252 and shows how to fix it:
// C3252.cpp
// compile with: /clr /c
ref class A {
public:
virtual void f1() {}
};
ref class B : public A {
// To fix, uncomment the following line:
// public:
virtual void f1() override sealed {} // C3252, make this method public
};