0
What is public in c#?
2 Answers
+ 1
It is a keyword that is used as an access modifier. It means that the method or the variable of a class or an object of the class can be accessed from the class itself, another derived class from the first class or any other class.
+ 1
It's an access modifier keyword that allows a class, functions and variables to be accessed inside and outside the class with no restrictions.