Java OOPS [Encapsulation]

Loading...

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

Uploaded by on Jun 7, 2009

Java Encapsulation

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 8 dislikes

Link to this comment:

Share to:
see all

All Comments (25)

Sign In or Sign Up now to post a comment!
  • its very helpful and mam ur teaching is superb!thanx for this wonderful class.

  • Very good and clear explanation

  • Mam Your Energy for teaching is WOW... Great Teacher.

  • the problem with java teachers is they use to many big words.. lol. Constructor shmuctor

  • It is really helpfull, amazing.

    I like it, thanks a lot.

    keep posting more videos.

    Some times I get confused and I don´t know when to use constructors, structors or interfaces because its functionalities seems to be the same.

    Can some one help me please???

  • @rupreetsoni

    check out the video again, she says "this variable will be in the stack memory and the object in the heap and variable a1 will be pointing to the heap memory", it is because classes are reference types.

  • @TheSoftwareFuture the Videos aren´t complete here. They have been chopped randomly I guess, still very useful and conceptual. Even if the title is Encapsulation, this covers the basics of constructors.

  • THERE ARE NO ENCAPSULATION HERE. ENCAPSULATION IS SIMPLY MAKING THE FIELDS/VARIABLES PRIVATE. AND WHEN U USE THE OBJECT IN ANOTHER CLASS, U WONT BE ABLE TO ACCESS THE VARIABLES. SO U SIMPLY USE THE PUBLIC METHOD GET AND SET TO ACCESS THEM OR PASS VALUES TO THEM

  • So when I instantiate an object a1, how does the memory look like?

    From what she said: 'stack' should have 2 bytes with a1 written in, and then next n (how many?) bytes that contain the memory address pointing somewhere at 'heap' where the actual a1 object is located?

  • @rupreetsoni

    I believe that's what she drew on the board..#idiot

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