Can a function or sub-routine be accessed by the same namespace with the access modifier of private?
Or does the access modifier need to be public or internal?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Within a class you can access all methods and properties that belong to that class as well as any protected members exposed by its base class (if it has one).
Within another class in the same
namespaceassembly (or friend assembly) you can only reference the public or internal members of the first class.Classes from other
namespacesassemblies can only access public members.Notes: