Access specifiers are generally used for showing the availability of different class members. Mainly there are five types of access specifiers used in .Net or C# as below:
1. Public: This specifier is used to access the object of the class from anywhere even from out of the class.
2. Private: This specifier is used to define private functionality of the class. It�s only accessible by the object or member of that class.
3. Protected: Its used for inheriting the class. Only child class can access such class and its protected from other classes.
4. Internal: Its accessible by all classes of assembly.
5. Protected Internal: It�s the combination of internal and protected specifier. So it can be accessed by inheriting or child class as well as that own class itself from the assembly.
__________________
Strategic Web Solutions by SPINX INC. - A Web Design Company in Tampa,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Last edited by bryanbell; 09-13-2012 at 01:54 AM..
|