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

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

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.

syntax,
public class MyClass  // public class

{
public int a; // public field
}


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response