what are the different accessibility levels in


What are the different accessibility levels in .NET?

The five levels of access modifiers are as follows:-

  • Private: The members of the class only have the access.
  • Protected: All the members in current class & in derived classes can access the variables.
  • Friend (internal in the C#):- Only the members in current project have access to the elements.
  • Protected friend (protected internal in the C#) :- All members in the current project & all members in derived class can access the variables.
  • Public: - All the members have access in all classes and projects.

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: what are the different accessibility levels in
Reference No:- TGS0161267

Expected delivery within 24 Hours