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

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

protected is an access modifier which provides access level to a particular class and any other classes derived from it. In other words, a type with protected keyword can be accessed only by its class members or any other derived class members.

syntax,
protected class MyClass

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


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response