I can still make id static and provide a static getId, that would still make the variable read only.
Am I right?
About Question enthuware.ocajp.i.v7.2.1001 :
Moderator: admin
-
- Site Admin
- Posts: 10386
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1001 :
Making it static will not affect its visibility. Other classes can still access it directly. To hide it from other classes, you have to make it private.
HTH,
Paul.
HTH,
Paul.
Who is online
Users browsing this forum: Google [Bot] and 12 guests