Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   ASP (http://siteownersforums.com/forumdisplay.php?f=11)
-   -   access specifiers (http://siteownersforums.com/showthread.php?t=58599)

michael clay 07-16-2012 10:34 PM

access specifiers
 
Any body say what are the access specifiers used in asp.net

davikerkrish 07-17-2012 02:43 AM

1. Public
2. Private
3. Protected
4. Internal
5. protected internal

michael clay 07-18-2012 09:32 PM

hi
 
Quote:

Originally Posted by davikerkrish (Post 226544)
1. Public
2. Private
3. Protected
4. Internal
5. protected internal

hi
thanks
but u can tell where internal and protected internal is going to apply

bryanbell 09-03-2012 05:38 AM

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.

vivekaryan 04-19-2013 03:22 AM

yeah...........thanks for sharing this.

alligatortek001 03-12-2014 03:05 AM

1. Public
2. Private
3. Protected
4. Internal
5. protected internal


All times are GMT -7. The time now is 04:47 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.