Java Tutorial For Beginners 18 – Classes and Objects in Java

///Java Tutorial For Beginners 18 – Classes and Objects in Java

Java Tutorial For Beginners 18 – Classes and Objects in Java

FavoriteLoadingAdd to favorites

Searches related to Classes and Objects in java
classes and objects in java pdf
classes and objects in java ppt
classes and objects in c++
classes in java
classes and objects in java with realtime examples
methods in java
encapsulation in java
define class in java

Java468x60
By |2017-05-26T23:10:54+00:00May 26th, 2017|Java Video Tutorials|50 Comments

50 Comments

  1. abhishek mahtta May 26, 2017 at 11:12 pm - Reply

    how does getter and setters protect from data corruption please explain? a programmer can change id, age,name in both the cases u have shown

  2. Kevin M. Thomas May 26, 2017 at 11:15 pm - Reply

    I agree with +Michael Saneke can you create a tutorial for creating an address book GUI with a table you can sort by field and add, delete, sort, search, etc? Without using Eclipse only a text editor?

  3. phirephate May 26, 2017 at 11:15 pm - Reply

    I’m not learning from a guy too stupid to change the battery in his smoke detector.

  4. prathamesh sawant May 26, 2017 at 11:15 pm - Reply

    what is that "this.id=id:" used for?

  5. Just1MorePerson1 May 26, 2017 at 11:18 pm - Reply

    I love you man you make this so easy to understand

  6. maxand 1 May 26, 2017 at 11:19 pm - Reply

    I still dont understand why we need encapsulation and how somebody can corrupt the data if int id;String name;int age still existing in the class?

  7. AxStalker May 26, 2017 at 11:19 pm - Reply

    Hello, sir. I just wanted to tell you that I appreciate your work a lot. I started my Computer Science AP program 2 weeks ago as an international student in Denmark and we are already on page 170 in our book. We are going so fast through it and your tutorials helped me a ton to understand the basic concepts. You are awesome! 🙂

  8. Sundarraj Pitchumani May 26, 2017 at 11:21 pm - Reply

    Very nice work and kudos for teaching us the core topics in easy way. way to go!

  9. Jonathan Selnes May 26, 2017 at 11:24 pm - Reply

    get rid of that piping sound, please 😛

  10. Vedant Suryawanshi May 26, 2017 at 11:26 pm - Reply

    i am also a beginner and i am study from eclipses as i am following him

  11. iDevelopPro May 26, 2017 at 11:27 pm - Reply

    good tutorial

  12. Anil Pathuri May 26, 2017 at 11:29 pm - Reply

    like you stranger

  13. Devarasetty SAI KRISHNA VAMSHI May 26, 2017 at 11:29 pm - Reply

    I understood the 1st part but the 2nd part of getid( )…
    Please explain it clearly

  14. Steve Menkin May 26, 2017 at 11:29 pm - Reply

    Before you understand code you will hate it, once you understand it, you will enjoy speaking it.

  15. Anil Choundaj May 26, 2017 at 11:29 pm - Reply

    Thanks a lot

  16. sargon marqos May 26, 2017 at 11:30 pm - Reply

    thank you   … really helpful  🙂

  17. nalinee srivastava May 26, 2017 at 11:31 pm - Reply

    sir please provide tutorial for struts and hibernate

  18. hiren vaishnav May 26, 2017 at 11:32 pm - Reply

    I imprested….hello! dear, I’m a developer, and I lead a team who develop an android app for movement and digital India,

  19. Jacqueline Cahill May 26, 2017 at 11:32 pm - Reply

    I watched some of your C++ videos (until I found out I was in the wrong class) and this is the first time using this for java. You do a great job making it simple for beginners. Thanks a ton…you have been a great help for me.

  20. Shaik Sameema bibi May 26, 2017 at 11:33 pm - Reply

    ITS NOT GETTING AN output ..its saying student cannot be resolved into a type

  21. nalinee srivastava May 26, 2017 at 11:39 pm - Reply

    sir please provide tutorial for struts and hibernate

  22. Gabriel Nadar May 26, 2017 at 11:39 pm - Reply

    pls get rid of the sound which comes after every minute, its irritating.

  23. Robert Reimann May 26, 2017 at 11:40 pm - Reply

    Any1 help please. I don’t know what instance means and Google Translate can’t help me… Fuck this shit

  24. C Causey May 26, 2017 at 11:41 pm - Reply

    Can someone explain which part is missed with protecting your data. Which ones should have been private?

  25. Muhammet Ali Ariturk May 26, 2017 at 11:41 pm - Reply

    hiya, When i try to setName,id,age with scanner. Id and Age works but for name ; it didnt want me to type a name ! and say " ";
    " is 2 years old";
    thank u

  26. Black Crusader May 26, 2017 at 11:41 pm - Reply

    You fucking stupid indus. There are not encapsulation AT ALL, because you forgot keyword PRIVATE before your instance variables in Student class. Don’t watch this suck. The author is crazy monkey.

  27. rjvnz May 26, 2017 at 11:45 pm - Reply

    Hi, thank you for this wonderful video. I was so confused trying to understand classes using textbooks and this was gold. Just a quick question: Shouldn’t tom.setId(2)? In your video, tom.setId(1) which I’m guessing will override Mark’s id?

  28. Nelly s May 26, 2017 at 11:46 pm - Reply

    I understand how to assign getters and setters for the variables, but don’t really see the reason for doing it. Can anyone
    give an example of a situation where assigning getters and setters would be necessary?

  29. Umer FS May 26, 2017 at 11:47 pm - Reply

    The whole reason to generate those getters and setters was to make your instance variables private, and you didn’t do just that.
    private int id; private String name; private int age; is the way to go. (In your Student class.)

  30. Savolla Ross May 26, 2017 at 11:47 pm - Reply

    use "CTRL+2 , R" for changing all "selected" variables at once

  31. Gulshan Kumar May 26, 2017 at 11:49 pm - Reply

    pls tell me is there any method used in java to clear the screen as used clrscr() in c or c++.??

  32. narri uday May 26, 2017 at 11:50 pm - Reply

    Awesome explanation Bro…I have seen many videos on getter and setters but i never understand how it works. But this video was lifesaver. Thank you so much bro.

  33. Ozzie May 26, 2017 at 11:50 pm - Reply

    Hmm mm mm. N mmnyyy

  34. Aris FunkySoul May 26, 2017 at 11:51 pm - Reply

    Raj, is that you?

  35. Anuj Gupta May 26, 2017 at 11:52 pm - Reply

    You please pronoun the words correctly and improve your English vocabulary so that you can teach more clearly . And also don’t repeat the sentence again and again.

  36. Sagar Mishra May 26, 2017 at 11:53 pm - Reply

    getters and setters are preferred because this way you can keep the *variables* private (makes application more secure), and set or get the values by using public methods.

  37. GRHS May 26, 2017 at 11:54 pm - Reply

    Replace the battery in your smoke alarm!

  38. Žan R May 26, 2017 at 11:55 pm - Reply

    For those of you who can’t grasp the concept of objects and classes. I was in the same situation as you. I watched a ton of videos and I just didn’t quite get it. So after hours of researching about objects and classes I finally decided that I would actually write the code that these Youtubers were writing in their tutorials. I did some examples after these kind of tutorials and I basically practiced what they were doing. I also googled some exercises for this topic and after a couple of hours everything started making sense. The point is don’t just watch these tutorial videos. You should try writing the code by yourself and do exercises on the specific topic that way you can really start thinking and overtime you will start understanding what they were talking about. Trust me.

  39. jose munguia May 26, 2017 at 11:55 pm - Reply

    GREAT VIDEOS! THANKS!

  40. George Mwongela May 26, 2017 at 11:58 pm - Reply

    Thank you

  41. Shaif Nachiya May 26, 2017 at 11:59 pm - Reply

    You are super duper awesome. You really made me to understand and how to build from the basic. Each and every videos are filled with golden keys. Thank You

  42. Govind Mishra May 27, 2017 at 12:00 am - Reply

    Hatts off bro…..Appreciate ur work …Thanx alot for it

  43. Abd el May 27, 2017 at 12:01 am - Reply

    i clicked on an Ad , hope that could benefit you in some way 😉
    Thanks for the tutorial.

  44. Rajat Kumar May 27, 2017 at 12:02 am - Reply

    I am facing a problem……. When i am trying to import any variable from a class it show me a error like id is a variable so it is showing "id cannot be resolved or is not a field."……… Hep me Thanks

  45. dksharktooth May 27, 2017 at 12:03 am - Reply

    Good tutorials.

    Use 1.5x speed if he’s going to slow for you.

  46. Ahnis Aneja May 27, 2017 at 12:03 am - Reply

    Where do you live ?? are u indian

  47. Black Crusader May 27, 2017 at 12:04 am - Reply

    WTF? Stop this bullshit! Mark is not an object, it’s only a reference variable that link to an object. Who are you? Maybe Mr. Helloworld… or Mr.Newbie

  48. alena dmitruk May 27, 2017 at 12:06 am - Reply

    I think you are teacher from God☝👏

  49. Nic Maoury May 27, 2017 at 12:06 am - Reply

    Why not make the field variables private?

  50. Robert Reimann May 27, 2017 at 12:10 am - Reply

    I love dat 1 fps xD

Leave A Comment

*