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
Online
-
- Site Admin
- Posts: 10065
- 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.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 209 guests