What do you mean by public keyword in C# programming language?

 Posted by Goud.Kv on 9/1/2014 | Category: C# Interview questions | Views: 308 | Points: 40

public is an access modifier which has no restrictions. In other words, a type with public keyword can be accessed by any one from any assembly which references it.

public class MyClass  // public class

public int a; // public field

Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response