Java Programming Tutorial - 38 - Public, Private and this

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
102,579
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 2, 2009

How to controll access to memebers and also how to use the this keyword

  • likes, 89 dislikes

Link to this comment:

Share to:

Top Comments

  • Hey you! click the like button this.second!

  • 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.

see all

All Comments (170)

Sign In or Sign Up now to post a comment!
  • @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

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more