blah, my bad. You're totally correct. The only excuse I have is a massive brain fart on my part :( I forget that Java packages behave differently from namespaces and assemblies.
Type: Posts; User: helloworld922
blah, my bad. You're totally correct. The only excuse I have is a massive brain fart on my part :( I forget that Java packages behave differently from namespaces and assemblies.
edit: My mistake. I originally thought protected disallowed package access. This is incorrect. Edited post to remove offending content.
No, you can't do that. I suggest you look into using a getter method. You don't need to define one in A so you can't access name publicly with A, but with B you can access name publicly.