Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forumdisplay.php?f=21)
-   -   Clarification for private access modifier (http://www.go4expert.com/showthread.php?t=24731)

whateverme 26Jan2011 00:12

Clarification for private access modifier
 
if let's say I have
<code>private int x</code>

what does x mean in the about context.

does it mean:
is write only
cannot be used outside the object
a class variable


thank you.

virxen 26Jan2011 04:33

Re: Clarification for private access modifier
 
the correct answer is
Quote:

cannot be used outside the object


All times are GMT +5.5. The time now is 12:51.