Access Specifiers defines the scope of a class member. A class member can be variable or function. In C# there are five types of access specifiers are available.
* Private : The scope of the accessibility is limited only inside the classes or struct in which they are declared.
* Protected : The scope of accessibility is limited within the class or struct and the class derived (Inherited )from this class.
* Internal : The internal access modifiers can access within the program that contain its declarations and also access within the same assembly level but not from another assembly.
* Protected Internal : Protected internal is the same access levels of both protected and internal. It can access anywhere in the same assembly and in the same class also the classes inherited from the same class.
No comments:
Post a Comment