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?
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 namespace assembly (or friend assembly) you can only reference the public or internal members of the first class.
Classes from other namespaces assemblies can only access public members.
Notes:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With