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

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

private is an access modifier which provides access only to a particular class. In other words, a type with private keyword can be accessed only by the members of that class or struct .
It is the default access modifier.

syntax,
private class MyClass

{
...........;
.........;
}


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response