Java Programming Lecture: Classes and Objects

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 210

  • @JuliaNeubauer
    @JuliaNeubauer ปีที่แล้ว

    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.

  • @collinsushi1155
    @collinsushi1155 8 ปีที่แล้ว +1

    Perfect lecture... This guy is cool. He killed it... Thumbs up Unacademy...... Proud of u guys

  • @MacSwaggin
    @MacSwaggin 8 ปีที่แล้ว +1

    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.

  • @DJMixon2
    @DJMixon2 11 ปีที่แล้ว +1

    This one video has made my java programming class so much easier to understand. Amazing. Thank you so much!

  • @hardishah3442
    @hardishah3442 5 ปีที่แล้ว +1

    12th me koi bhi computer ki coaching nahi karata. Thnx sir now i can prepare well for my boards

  • @abhishekmatta6539
    @abhishekmatta6539 8 ปีที่แล้ว +2

    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

  • @paulogoncalvesjr
    @paulogoncalvesjr 8 ปีที่แล้ว +1

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

  • @raypeters7222
    @raypeters7222 6 ปีที่แล้ว +1

    Thanks for explaining it much more clearly than my prof and textbook!

  • @Helen-hl7yw
    @Helen-hl7yw 8 ปีที่แล้ว +1

    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!

  • @enkidu_4067
    @enkidu_4067 6 ปีที่แล้ว +1

    Thanks for the video. I'm transitioning from a modular language to OOP and these examples provided needed clarification.

  • @rhronsky
    @rhronsky 11 ปีที่แล้ว +1

    what a great explenation! especially the example with box-objects, its so clear now!

  • @irfanshaik5273
    @irfanshaik5273 11 ปีที่แล้ว

    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.

  • @helloimnothing1221
    @helloimnothing1221 9 ปีที่แล้ว +1

    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!

  • @swapnilp7892
    @swapnilp7892 9 ปีที่แล้ว +1

    You are a hero. Thank you so much for taking time to create this.

  • @prappyas400
    @prappyas400 10 ปีที่แล้ว +36

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

    • @rahul122424
      @rahul122424 10 ปีที่แล้ว +3

      yes, you are right.....

    • @NaveenKumar-fu5dd
      @NaveenKumar-fu5dd 7 ปีที่แล้ว +5

      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.

    • @saifudinhijazi1907
      @saifudinhijazi1907 6 ปีที่แล้ว

      yah tru in static field can be pass directly

    • @annabelleellis8098
      @annabelleellis8098 6 ปีที่แล้ว +1

      Same question I had. I was wondering too.

  • @mRuKjoe
    @mRuKjoe 11 ปีที่แล้ว

    I like your video. taking an online class and your explanation rocks my professors lectures..

  • @SmartProgramming
    @SmartProgramming 6 ปีที่แล้ว

    really very helpful sir, very nicely explained, thank you 🙂🙂🙂🙂👍👍👍👍

  • @cherylliang436
    @cherylliang436 7 ปีที่แล้ว +1

    Thank you for explaining it so specifically. You literally save my life!!

  • @navinpal668
    @navinpal668 6 ปีที่แล้ว +1

    This video cleared my basic doubts.. thanks for making & sharing the video.. keep on making worthy video .

  • @zephanavaan
    @zephanavaan 12 ปีที่แล้ว

    man I have seen so many videos...but your explanation is the best

  • @rishabhtyagi7858
    @rishabhtyagi7858 6 ปีที่แล้ว +2

    i was not able to understand this concept in my udemy course but after watching this lecture every thing is clear.
    Thanks

    • @waynestrydom6522
      @waynestrydom6522 6 ปีที่แล้ว +1

      I had the exact same problem, all explained here perfectly. 10/10!!

  • @unacademyupscprep
    @unacademyupscprep  12 ปีที่แล้ว

    Thank you @zephanavaan

    • @ritukumari1140
      @ritukumari1140 4 ปีที่แล้ว

      Where are others lecture of this series

  • @peloquin74
    @peloquin74 10 ปีที่แล้ว +1

    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

  • @WreathStorm
    @WreathStorm 9 ปีที่แล้ว

    I LOVE YOU!! I have an exam tomorrow, and this clarifies objects and classes quite well!!

  • @pavan0812
    @pavan0812 10 ปีที่แล้ว

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

  • @limenghean
    @limenghean 8 ปีที่แล้ว +1

    Thanks so much for the info! Your explanation has been very clear and easy to understand with the examples you provide

  • @lisazhao9889
    @lisazhao9889 8 ปีที่แล้ว +12

    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

  • @sunnypraja1819
    @sunnypraja1819 9 ปีที่แล้ว +15

    pause the video at 14:14
    here shouldn't the object should be pencilBox.height instead of box.height and for other as well

    • @ofirrolev
      @ofirrolev 9 ปีที่แล้ว +3

      Sunny Praja yeah lol I didn't see that before I read your comment. You right

    • @saumyojitdas4212
      @saumyojitdas4212 5 ปีที่แล้ว

      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

  • @akshathkathel1260
    @akshathkathel1260 8 ปีที่แล้ว +4

    sir ,thanks for explaining it so nicely....i was not able to understand it from a long time

  • @neha0948
    @neha0948 7 ปีที่แล้ว

    Very well explained Class and Object......

  • @albemar78
    @albemar78 10 ปีที่แล้ว +1

    Wow you explain things so very well! This has helped me so much!

  • @vikassrivastava007
    @vikassrivastava007 10 ปีที่แล้ว +3

    saved a lot of my time. very clearly explained. thank you.

  • @omkarkaware5305
    @omkarkaware5305 6 ปีที่แล้ว

    Clear every basic thing in programming thank you

  • @anderso84
    @anderso84 11 ปีที่แล้ว +1

    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. :)

  • @varunrathore10
    @varunrathore10 11 ปีที่แล้ว

    thnqq so mch....it's the most easiest way to learn classes....!!

  • @loicsen8003
    @loicsen8003 9 ปีที่แล้ว +1

    Very nice introduction to these concepts! Thanks :)

  • @primesh111
    @primesh111 8 ปีที่แล้ว +8

    8:25
    Slouldn't it be--> classname var-name = new classname();
    Got a little confused.

  • @neelakshsharma3365
    @neelakshsharma3365 11 ปีที่แล้ว

    thanks unacademy .. you explained it well.

  • @gentlfun
    @gentlfun 6 ปีที่แล้ว +1

    You are freaking amazing! Explained pretty good. Comments below for improvement make sense, too.

  • @ahmedkhan55
    @ahmedkhan55 11 ปีที่แล้ว

    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

  • @TaleVerse
    @TaleVerse 8 ปีที่แล้ว

    Thanks a lot..class n object basics expalined very clearly

  • @muziekliefhebber24
    @muziekliefhebber24 10 ปีที่แล้ว

    thanks alot. your explanation about classes and objects helped me get a clear view about the subject

  • @farishasli5813
    @farishasli5813 11 ปีที่แล้ว +2

    thanks sir.. but shouldnt it be like pencilBox.height = 45; Instead of box.height = 45? Since you created a pencilBox of type box ?

  • @donaldbough3445
    @donaldbough3445 11 ปีที่แล้ว

    Awesome tutorial, makes a lot more sense.

  • @anirudhsharma1189
    @anirudhsharma1189 9 ปีที่แล้ว

    Very nicely explained. Thanks

  • @NoName-py4dj
    @NoName-py4dj 5 ปีที่แล้ว

    This clear explanation is lit af...

  • @frank299
    @frank299 9 ปีที่แล้ว +1

    Great video. Thank you. Extremely helpful.
    Is there a part 2 or follow up video to this?

  • @ElninoHanif
    @ElninoHanif 8 ปีที่แล้ว +1

    Thank you, sir! Keep up the good work! It's truly helpful.

  • @phuonghuynh554
    @phuonghuynh554 7 ปีที่แล้ว +1

    Great explanation, thank you!

  • @YaicBWax
    @YaicBWax 7 ปีที่แล้ว

    Great video ... very informative . Thanks

  • @jossvenn9837
    @jossvenn9837 7 ปีที่แล้ว

    Very well Explained.

  • @hack-stack
    @hack-stack 9 ปีที่แล้ว

    Man you are the life saviour !!!!

  • @NaveenKumar-fu5dd
    @NaveenKumar-fu5dd 7 ปีที่แล้ว

    you guys are nailed it...

  • @greatvedas
    @greatvedas 8 ปีที่แล้ว +1

    Such easy explanation ! Thanks brother for the knowledge share and shower. :)

  • @MrJamizee
    @MrJamizee 9 ปีที่แล้ว

    Thanx, I now understand it much better.

  • @harshasuresh4062
    @harshasuresh4062 3 ปีที่แล้ว

    Thank you so much sir! This really helped my understanding!

  • @dustymug7290
    @dustymug7290 9 ปีที่แล้ว

    Great way to explain it!

  • @richyphiphe
    @richyphiphe 10 ปีที่แล้ว +4

    ...better than my prof. lol
    Thanks!

  • @yziyun6028
    @yziyun6028 9 ปีที่แล้ว

    Incredibly helpful, thanks a lot!

  • @datampq
    @datampq 11 ปีที่แล้ว

    13:06 shouldn't the method be "public double volume(){..." ?

  • @jakkamgirish
    @jakkamgirish 10 ปีที่แล้ว +11

    its a good one ..

  • @kloppervok
    @kloppervok 9 ปีที่แล้ว

    at 14:14 should line 4 read: System.out.println(pencilBox.volume() );
    ?
    The lowercase "box" in "box.volume()" is confusing me.

    • @InvisiblePotHead
      @InvisiblePotHead 9 ปีที่แล้ว +2

      +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

  • @billythesunbeltsamurainapi3670
    @billythesunbeltsamurainapi3670 7 ปีที่แล้ว

    so basically a class is a structure in C and a instance is that structure being allocated in memory in C . or a node .

  • @karimtahraoui3344
    @karimtahraoui3344 10 ปีที่แล้ว +1

    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

  • @sourd1es3l
    @sourd1es3l 11 ปีที่แล้ว +1

    Thanks. Great explanation.

  • @johnbeecroft1037
    @johnbeecroft1037 10 ปีที่แล้ว

    Thank you. Very clear.

  • @itsme.rakheemurthy8596
    @itsme.rakheemurthy8596 10 ปีที่แล้ว

    Really a good one. I want to learn the entire java coding with this video. Do you have that?

  • @niveditapenugonda2175
    @niveditapenugonda2175 8 ปีที่แล้ว

    Thank u for the video....:) nicely explained

  • @zoka182
    @zoka182 8 ปีที่แล้ว

    Great video,Thanks.

  • @chuuniniruka
    @chuuniniruka 9 ปีที่แล้ว

    Very helpful! Thanks

  • @parshantmadaan4709
    @parshantmadaan4709 11 ปีที่แล้ว

    Thank's man...... its really helpfull.

  • @mohammedalamri3053
    @mohammedalamri3053 10 ปีที่แล้ว +1

    thanks to you, nw I understand the difference...

  • @johnquatza5607
    @johnquatza5607 7 ปีที่แล้ว

    Thank you, very easy to understand now

  • @muzkhan5158
    @muzkhan5158 8 ปีที่แล้ว

    thank you, very helpful. understood it 100%

  • @kushalbaskey
    @kushalbaskey 7 ปีที่แล้ว

    well expalined. was very easy to understand.
    you should arrange the videos in a playlist.

  • @shadaflorida4248
    @shadaflorida4248 7 ปีที่แล้ว

    great job explaining! thanks

  • @mayurmali4625
    @mayurmali4625 7 ปีที่แล้ว

    Nice Explain. Thanks.

  • @71sephiroth
    @71sephiroth 8 ปีที่แล้ว +2

    thank you! nicely explained.

  • @kojoowusu-ansah7427
    @kojoowusu-ansah7427 7 ปีที่แล้ว

    like your lectures...its a pity you dont have more on java.would you have any play list somewhere that i can get to?

  • @Creolo88
    @Creolo88 10 ปีที่แล้ว

    Thank you! You made it really easy.

  • @mmelend1
    @mmelend1 7 ปีที่แล้ว

    Thanks for the video is was helpfull for me.

  • @tausal1
    @tausal1 7 ปีที่แล้ว

    great explanation! Thanks.

  • @shreesen1941
    @shreesen1941 9 ปีที่แล้ว

    *Great informative video. Thanks for sharing!*

    • @shreesen1941
      @shreesen1941 9 ปีที่แล้ว

      *Get 50% Discount On Buy Video Tutorials CLICK HERE >>> **tinyurl.com/lpd88el**

  • @osamarasma4541
    @osamarasma4541 9 ปีที่แล้ว

    Thanks mate, i understood it perfectly

  • @calmday2347
    @calmday2347 7 ปีที่แล้ว +1

    Really helpful..thanx a lot

  • @krishnas5582
    @krishnas5582 8 ปีที่แล้ว

    Awesome Bro. Good way of explaining with examples. (y)

  • @insilenthill
    @insilenthill 10 ปีที่แล้ว

    thank you very much. you helped me a lot.

  • @agnuskuriakose4714
    @agnuskuriakose4714 5 ปีที่แล้ว

    Great explanation

  • @iammarieiammarie1941
    @iammarieiammarie1941 8 ปีที่แล้ว

    This was very helpful, thank you! Keep on with the videos!

  • @thebigboss3388
    @thebigboss3388 8 ปีที่แล้ว

    wow ! very useful thank u very much sir

  • @galant903
    @galant903 9 ปีที่แล้ว +1

    Thank you ,it helped me alot ,keep up the good work :D

  • @sagemulkey9890
    @sagemulkey9890 6 ปีที่แล้ว

    Wonderful video. Thank you so so so much

  • @ckbapps2009
    @ckbapps2009 8 ปีที่แล้ว

    Anymore OOP tuts coming for the java?

  • @aminmohammed4492
    @aminmohammed4492 10 ปีที่แล้ว

    Thanks. it really informative.

  • @darshanrock2805
    @darshanrock2805 9 ปีที่แล้ว

    does every object holds seperate copy of instance variable n method????

  • @dprid3
    @dprid3 11 ปีที่แล้ว

    @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 ?

  • @alessiapham7606
    @alessiapham7606 8 ปีที่แล้ว +1

    this was really helpful

  • @WiredDrummer
    @WiredDrummer 11 ปีที่แล้ว +3

    Thanks a lot for this video!

  • @aliashj8800
    @aliashj8800 7 ปีที่แล้ว

    LOVED IT

  • @nadz993
    @nadz993 9 ปีที่แล้ว

    I FINALLY UNDERSTAND THANK YOU SO MUCH!