+ 1
Why this error? C#, class inaccessible due to protection level
4 Respostas
+ 3
You have a static method 'hello()' within a public class 'hellow' wrapped in a namespace 'prog'. You can access it as:
hellow.hello();
or
prog.hellow.hello();
if you do not declare the use of namespace prog.
+ 1
The method 'hello()' is in a different class (the hellow class), and therefore must be accessed as such. Because it is a static method, it can be accessed statically:
hellow.hello();
+ 1
Put the class name (hellow) before its method (hello)
+ 1
Hatsy Rei
it means, System is not a class?