0

What is public in c#?

12th Nov 2017, 3:59 PM
wajeeha
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.
12th Nov 2017, 4:33 PM
Mohammed Hany
Mohammed Hany - avatar
+ 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.
12th Nov 2017, 6:32 PM
Jonathan Álex
Jonathan Álex - avatar