Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1001 :

Posted: Tue Dec 25, 2012 10:36 am
by ETS User
I can still make id static and provide a static getId, that would still make the variable read only.
Am I right?

Re: About Question enthuware.ocajp.i.v7.2.1001 :

Posted: Tue Dec 25, 2012 2:23 pm
by admin
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.