Java Programming Tutorial - 38 - Public, Private and this
Top Comments
All Comments (170)
-
@thenewboston Dear Bucky,
What is the point of the Private if you can just use public so you don't have to go back and change it? My guess is because of hackers editing code if you are to publish it, or it just lets java think less, like only inserting what you need instead of the entire 'java.*'. Can you please explain?
-
lol @ " use this one right here" in a soft voice
-
but why it even takes 1,2,3 for first two lines of output
-
"this" function is not necessary all the times ,just directly typing the method name will also do
-
O crap we're down to less than 100k views... WE'RE THE ONLY ONES LEFT...
-
im gonna change the time to 4:5:6
look out we have a badass over here
-
Loled at 0:23: "Now what private means is that these variables are private.". Nice one :D.
-
@sarab2009 True.
docs.oracle.com/javase/tutoria
l/java/javaOO/thiskey.html
Hey you! click the like button this.second!
ro33han 7 months ago 134
this is to the class, not the method... if you want the method variables, do not use this. just watch what highlights, which you can see in your video, to see the linkage.
matthewdoucette 7 months ago 48