![]() |
access specifiers
Any body say what are the access specifiers used in asp.net
|
1. Public
2. Private 3. Protected 4. Internal 5. protected internal |
hi
Quote:
thanks but u can tell where internal and protected internal is going to apply |
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. |
yeah...........thanks for sharing this.
|
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.