Finally. You did it!! You demystified classes and objects. (I’ve watched dozens of videos to learn what classes and objects are.) Your lesson is what all Java newbies need to watch/learn.
It would have taken me 3 lessons of 2 hours to understand this but you explained it so well using everyday objects and now i understand how it works! Thank you so much you saved me from failing this module.
i spent 3 days on oracle.com and got nothing but this 15m video taught me what i was finding(basic knowledge of class and creating a object from class practically .Thanks
I was trying to remember Classes from 4 years ago and this turned out to be a very clarifying video. I have only 3 small things to point out: 1) It would be easier if you have stuck to just ONE example, e.g. Smartphone, instead of Smartphone AND Box; 2) At 8:30, it would be easier to understand if you wrote: classename var-name = new classename(); instead of classe var-name = new classename(); 3) As Lisa Zhao mentioned: At 13:34 I believe it should have been pencilBox.height = 45 (instead of box.height = 45) Etc ...
THANK YOU SO MUCH! I took AP CompSci as a Senior in highschool and never understood this concept. Now in College I'll be taking Computer Science and this video is excellent!
khris jamir is correct. At the ending of the video..In finding volume of box .... the operator is missmatch with dot operators which are you accessing as height,breadth, and length.
Thanks a lot, i had really got some problems with class and object in java programing but this video helped me out after watching it. You are appreciated. Keep it up!
in 13:36 you are creating object pencilbox by giving Box pencilBox=new Box(); and then you are using box.height=45; same way for length and breadth. is that correct? it should be pencilBox.height=45; right? correct me if Iam wrong...i just started learning java..
yeah, absolutely correct. if it is a static field means you won't require an object to set the values. You can directly pass value by class name itself.
very good lecture...Read many but very useful to everyone who are yet to clear what are objects & classes. Very useful to the beginners of java....but at the end make some changes...conclusion is very important to get a clear picture..
At 13:34 I believe it should have been: Box pencilBox = new Box(); pencilBox.height = 45; pencilBox.length = 67; pencilBox.breadth = 89; System.out.println(pencilBox.volume()); if I am not mistaken? :x
class Box { int volume=0; int length=4; int breadth=5; int height=2; public static void main (String[] args) { volume=length*breadth*height; System.out.println(+volume); } } i am getting error why . due to object not created
Thank you so much! This was a great explanation and very helpful to me as I have never worked with Java before. Looking forward to going through some of your other videos in the next couple of weeks. :)
It was just awesome i am reading a book on java how to program by deitel . VIDS ABOUT THE TOPICS WITH BOOKS gives me a very good understanding of java programming concepts . Thanks for the video . Appreciated
+truthling I think it was suppose to be pencilBox.height, pencilBox.lenght, pencilBox.breadth and penciBox.volume() cause the fields and the method belong to the class Box. If i'm wrong, please let me know
@13:47 ,,,, correct me if im wrong but shouldnt it be like pencilBox.height = 45; Instead of box.height = 45? Since you created a pencilBox of type box ?
Finally. You did it!! You demystified classes and objects. (I’ve watched dozens of videos to learn what classes and objects are.) Your lesson is what all Java newbies need to watch/learn.
Perfect lecture... This guy is cool. He killed it... Thumbs up Unacademy...... Proud of u guys
It would have taken me 3 lessons of 2 hours to understand this but you explained it so well using everyday objects and now i understand how it works! Thank you so much you saved me from failing this module.
This one video has made my java programming class so much easier to understand. Amazing. Thank you so much!
12th me koi bhi computer ki coaching nahi karata. Thnx sir now i can prepare well for my boards
i spent 3 days on oracle.com and got nothing but this 15m video taught me what i was finding(basic knowledge of class and creating a object from class practically .Thanks
I was trying to remember Classes from 4 years ago and this turned out to be a very clarifying video. I have only 3 small things to point out:
1) It would be easier if you have stuck to just ONE example, e.g. Smartphone, instead of Smartphone AND Box;
2) At 8:30, it would be easier to understand if you wrote:
classename var-name = new classename();
instead of
classe var-name = new classename();
3) As Lisa Zhao mentioned:
At 13:34 I believe it should have been
pencilBox.height = 45 (instead of box.height = 45)
Etc ...
Thanks for explaining it much more clearly than my prof and textbook!
THANK YOU SO MUCH! I took AP CompSci as a Senior in highschool and never understood this concept. Now in College I'll be taking Computer Science and this video is excellent!
Thanks for the video. I'm transitioning from a modular language to OOP and these examples provided needed clarification.
what a great explenation! especially the example with box-objects, its so clear now!
khris jamir is correct.
At the ending of the video..In finding volume of box ....
the operator is missmatch with dot operators which are you accessing as height,breadth, and length.
Thanks a lot, i had really got some problems with class and object in java programing but this video helped me out after watching it. You are appreciated. Keep it up!
You are a hero. Thank you so much for taking time to create this.
in 13:36 you are creating object pencilbox by giving Box pencilBox=new Box(); and then you are using box.height=45; same way for length and breadth. is that correct? it should be pencilBox.height=45; right? correct me if Iam wrong...i just started learning java..
yes, you are right.....
yeah, absolutely correct. if it is a static field means you won't require an object to set the values. You can directly pass value by class name itself.
yah tru in static field can be pass directly
Same question I had. I was wondering too.
I like your video. taking an online class and your explanation rocks my professors lectures..
really very helpful sir, very nicely explained, thank you 🙂🙂🙂🙂👍👍👍👍
Thank you for explaining it so specifically. You literally save my life!!
This video cleared my basic doubts.. thanks for making & sharing the video.. keep on making worthy video .
man I have seen so many videos...but your explanation is the best
i was not able to understand this concept in my udemy course but after watching this lecture every thing is clear.
Thanks
I had the exact same problem, all explained here perfectly. 10/10!!
Thank you @zephanavaan
Where are others lecture of this series
Thank you so much. The best example of breaking down the language I have found. Really has helped me explain to my daughter who I am teaching to code
I LOVE YOU!! I have an exam tomorrow, and this clarifies objects and classes quite well!!
very good lecture...Read many but very useful to everyone who are yet to clear what are objects & classes. Very useful to the beginners of java....but at the end make some changes...conclusion is very important to get a clear picture..
Thanks so much for the info! Your explanation has been very clear and easy to understand with the examples you provide
At 13:34 I believe it should have been:
Box pencilBox = new Box();
pencilBox.height = 45;
pencilBox.length = 67;
pencilBox.breadth = 89;
System.out.println(pencilBox.volume());
if I am not mistaken? :x
correct
pause the video at 14:14
here shouldn't the object should be pencilBox.height instead of box.height and for other as well
Sunny Praja yeah lol I didn't see that before I read your comment. You right
class Box
{
int volume=0;
int length=4;
int breadth=5;
int height=2;
public static void main (String[] args) {
volume=length*breadth*height;
System.out.println(+volume);
}
}
i am getting error why .
due to object not created
sir ,thanks for explaining it so nicely....i was not able to understand it from a long time
Very well explained Class and Object......
Wow you explain things so very well! This has helped me so much!
saved a lot of my time. very clearly explained. thank you.
Clear every basic thing in programming thank you
Thank you so much! This was a great explanation and very helpful to me as I have never worked with Java before. Looking forward to going through some of your other videos in the next couple of weeks. :)
thnqq so mch....it's the most easiest way to learn classes....!!
Very nice introduction to these concepts! Thanks :)
8:25
Slouldn't it be--> classname var-name = new classname();
Got a little confused.
thanks unacademy .. you explained it well.
You are freaking amazing! Explained pretty good. Comments below for improvement make sense, too.
It was just awesome i am reading a book on java how to program by deitel . VIDS ABOUT THE TOPICS WITH BOOKS gives me a very good understanding of java programming concepts . Thanks for the video . Appreciated
Thanks a lot..class n object basics expalined very clearly
thanks alot. your explanation about classes and objects helped me get a clear view about the subject
thanks sir.. but shouldnt it be like pencilBox.height = 45; Instead of box.height = 45? Since you created a pencilBox of type box ?
Awesome tutorial, makes a lot more sense.
Very nicely explained. Thanks
This clear explanation is lit af...
Great video. Thank you. Extremely helpful.
Is there a part 2 or follow up video to this?
Thank you, sir! Keep up the good work! It's truly helpful.
Great explanation, thank you!
Great video ... very informative . Thanks
Very well Explained.
Man you are the life saviour !!!!
you guys are nailed it...
Such easy explanation ! Thanks brother for the knowledge share and shower. :)
Thanx, I now understand it much better.
Thank you so much sir! This really helped my understanding!
Great way to explain it!
...better than my prof. lol
Thanks!
Incredibly helpful, thanks a lot!
13:06 shouldn't the method be "public double volume(){..." ?
its a good one ..
Thanks :)
Unacademy You're Welcome !!
at 14:14 should line 4 read: System.out.println(pencilBox.volume() );
?
The lowercase "box" in "box.volume()" is confusing me.
+truthling I think it was suppose to be pencilBox.height, pencilBox.lenght, pencilBox.breadth and penciBox.volume() cause the fields and the method belong to the class Box. If i'm wrong, please let me know
so basically a class is a structure in C and a instance is that structure being allocated in memory in C . or a node .
thank you its helping
im from morocco and i haven't get any trouble with your accent
keep up (y)
thanks again for the videos it helps :D
Thanks. Great explanation.
Thank you. Very clear.
Really a good one. I want to learn the entire java coding with this video. Do you have that?
Thank u for the video....:) nicely explained
Great video,Thanks.
Very helpful! Thanks
Thank's man...... its really helpfull.
thanks to you, nw I understand the difference...
Thank you, very easy to understand now
thank you, very helpful. understood it 100%
well expalined. was very easy to understand.
you should arrange the videos in a playlist.
great job explaining! thanks
Nice Explain. Thanks.
thank you! nicely explained.
like your lectures...its a pity you dont have more on java.would you have any play list somewhere that i can get to?
Thank you! You made it really easy.
Thanks for the video is was helpfull for me.
great explanation! Thanks.
*Great informative video. Thanks for sharing!*
*Get 50% Discount On Buy Video Tutorials CLICK HERE >>> **tinyurl.com/lpd88el**
Thanks mate, i understood it perfectly
Really helpful..thanx a lot
Awesome Bro. Good way of explaining with examples. (y)
thank you very much. you helped me a lot.
Great explanation
This was very helpful, thank you! Keep on with the videos!
wow ! very useful thank u very much sir
Thank you ,it helped me alot ,keep up the good work :D
Wonderful video. Thank you so so so much
Anymore OOP tuts coming for the java?
Thanks. it really informative.
does every object holds seperate copy of instance variable n method????
@13:47 ,,,, correct me if im wrong but
shouldnt it be like pencilBox.height = 45;
Instead of box.height = 45?
Since you created a pencilBox of type box ?
this was really helpful
Thanks a lot for this video!
Thank to you :)
LOVED IT
I FINALLY UNDERSTAND THANK YOU SO MUCH!