Get complete courses at http://courses.caveofprogramming.com
A basic tutorial on using classes and objects in Java, plus some discussion of what classes and objects actually are. This tutorial focuses on classes containing only data; next time I’ll look at “methods”.
Amazon Auto Links: No products found.
I can hear this guy’s saliva building up in his mouth goddamn
Just start learning java from your excellent videos…you rock bro:) thank you
Drink a goddam glass of water dude
The program cant find the main class, I have this problem when I write before public
Voice is very ASMR haha. This tutorial still applies but for new people I would recommend checking out Java 8 tutorials for the most up to date usage of Java. Don’t learn old material
Your voice is very comforting!
Also your explanation is very comforting.
Nope…not gonna pass this exam….sigh
Very well done video.
can I write .. string name ; and int age;
outside any class . and would make the same effect ????
Thank very much Cave of Programming, your tutorials are the most concise and clear explanations on important fundamental concepts, I salute you sir!
I clicked on the video to learn, was greeted by some fancy piano. Top that off with a soothing British accent and some string instrumental and I felt like I had to get up and put on a suit.
your videos are the Best at breaking down Java ; Your voice sounds like Zartan from the Gi Joe cartoon. very cool
Thank you, Sir.
1.25x speed is a must
You have a truly soothing voice haha and I really really like you videos. I’ve been trying to grasp the concept of classes and objects, and I finally feel like I’m understanding. Thanks 🙂
5:31 General Kenobi
So i play the video, listen to the music and hear that british accent-and i become certain: This guy can teach some CLASS
No homo, but this man accent on point and he is using all the terms like state that are 8n my book.
hello Sir,
Here you have not declared the class PERSON as Public…so how it is getting accessed in main ??
is that ..the class person is bydefault public ?
made my lecture 1000 times easier
what is the purpose of `public` keyword infront of a `class` ?
Oh man, this ten minute video made so much more sense than my two hour lecture.
Those obnoxious self-centered breathing tactics
One of the better tutorials explaining classes in Java.
Ignore this if it’s explained later, but so far …
I’m baffled that you created a new class called “Person” and defined variables (name & age) in it, but the objects of that class (person1, etc) are not actually IN that class, but in the main class. most peculiar, momma
why we have to create object in main class , can’t we create it in person class itself?
Is this the same guy from udemy? It sounds just like him and the intro music is very similar to udemy’s videos on the iphone app.
Very good video I’ll have to watch it again though.
Thanks to this tutorial I have come up with this:
>>>>>HALL OF FAME< <<<< Mark Zuckerburg|Age: 24|Rank: Private Markuss Persson|Age: 34|Rank: Sergeant Soap McTavish|Age: 46|Rank: Captain Gabe Newell|Age: 48|Rank: General >>>>>>>>>><<<<<<<<<<
Thanks for this.
I don’t understand why you need to declare what ‘type’ the person1 variable is?
I’m referring to the ‘Person person1 = new Person()’ line.
I would understand if it was like this ‘ person1 = new Person()’ as you are creating a new object but i don’t understand why there is the need for the first person.
Any help would be great.
Cheers
If you declare a variable of type Person by putting Person person1; you get the message that it has not been initialised when you attempt to assign age and name values to it.
Wow… This video was very clear and helped me understand. Thank you!
thanks for this, the fog is starting to settle KEEP IT UP!
Really Really helpful 🙂 Thank you so much
Have you heard of a glass of water?