Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    14
    Views
    1,636

    Re: protected Access Specifier

    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.
  2. Replies
    14
    Views
    1,636

    Re: protected Access Specifier

    edit: My mistake. I originally thought protected disallowed package access. This is incorrect. Edited post to remove offending content.
  3. Replies
    14
    Views
    1,636

    Re: protected Access Specifier

    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.
Results 1 to 3 of 3