Access Levels in Visual Basic

The access level (Access modifiers) of a declared element is the extent of the ability to access it, that is, what code has permission to read it or write to it.

.NET allows access to code,

*     Public Can be accessed by any class
*     Private Can be accessed only by members inside the current class
*  Friend Can be accessed by members in any of the classes in the current assembly (the compiled code file)
*   Protected Can be accessed by methods in the current class or in any class that inherits from this class
*   Protected Friend Can be accessed by members in the current application(as with Friend) and by the members in any class that inherits from this class (as with Protected).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s