Access modifier | Access level granted | Elements you can declare with this access level | Declaration context within which you can use this modifier |
Public | Unrestricted: Any code that can see a public element can access it | Interfaces Modules Classes Structures Structure members Procedures Properties Member variables Constants Enumerations Events External declarations Delegates | Source file Namespace Interface Module Class Structure |
Protected | Derivational: Code within the class that declares a protected element, or a class derived from it, can access the element | Interfaces Classes Structures Procedures Properties Member variables Constants Enumerations Events External declarations Delegates | Class |
Friend | Assembly: Code within the assembly that declares a friend element can access it | Interfaces Modules Classes Structures Structure members Procedures Properties Member variables Constants Enumerations Events External declarations Delegates | Source file Namespace Interface Module Class Structure |
Protected Friend | Union of Protected and Friend: Code within the same class or the same assembly as a protected friend element, or within any class derived from the element's class, can access it | Interfaces Classes Structures Procedures Properties Member variables Constants Enumerations Events External declarations Delegates | Class |
Private | Declaration context: Code within the type that declares a private element, including code within contained types, can access the element | Interfaces Classes Structures Structure members Procedures Properties Member variables Constants Enumerations Events External declarations Delegates | Module Class Structure |
A
New
Internet
Library: Add Your Website/Blog
or Suggest A Website/Blog to our Free Web Directory
http://anil.myfunda.net.
Its very simple, free and SEO Friendly. Submit Now....
Its very simple, free and SEO Friendly. Submit Now....
Thursday, February 7, 2008
Access Modifiers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Post your comments here: