abcdefghijklmno Posted June 4, 2009 Posted June 4, 2009 Good morning ALL!!! Can any body tell me , all the access specifiers in vb.net and differences among them and advantage of each one.. Thanks&Regards, SrivaniAnnapurna Quote
DPrometheus Posted June 4, 2009 Posted June 4, 2009 From this website Access Specifiers Public: Gives variable public access which means that there is no restriction on their accessibility Private: Gives variable private access which means that they are accessible only within their declaration content Protected: Protected access gives a variable accessibility within their own class or a class derived from that class Friend: Gives variable friend access which means that they are accessible within the program that contains their declaration Protected Friend: Gives a variable both protected and friend access Static: Makes a variable static which means that the variable will hold the value even the procedure in which they are declared ends Shared: Declares a variable that can be shared across many instances and which is not associated with a specific instance of a class or structure ReadOnly: Makes a variable only to be read and cannot be written Quote My Development System Intel Core i7 920 @2.66Ghz 6 GB DDR3 SDRAM Windows 7 Ultimate x64 & Windows Vista Home Premium x64 dual boot GeForce GTX295 1.8 GB 3.5 TB HD
robertsams23 Posted April 5, 2010 Posted April 5, 2010 check the link below, the access specifiers details. http://csharp.net-informations.com/language/csharp-access-specifiers.htm robert. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.