Polymorphism In Java Tutorial #92

Поділитися
Вставка
  • Опубліковано 26 сер 2020
  • $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
    Polymorphism in Java means you can have many methods with the same name. If it's the same name with the same parameters it will prioritize which one to run. Polymorphism in Java is one of the trickiest topics, but it's not bad once you practice it!
    I hope you enjoyed this java polymorphism tutorial!
    Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
    Free Tips: bit.ly/3U6HXcb
    Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
    ~
    Alex Lee

КОМЕНТАРІ • 433

  • @alexlorenlee
    @alexlorenlee  7 місяців тому +7

    If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h

  • @MrLivincountry
    @MrLivincountry 3 роки тому +594

    Alex: "What can birds do?
    Me: "Fly obviou.."
    Alex: "Sing"
    Me: "....."

    • @Ercain3
      @Ercain3 3 роки тому +2

      hahaha

    • @Eli-tb2vd
      @Eli-tb2vd 3 роки тому

      LOL

    • @DanielADickey
      @DanielADickey 2 роки тому +4

      It's easier to print singing than flying...

    • @shadowmark2224
      @shadowmark2224 2 роки тому +1

      I thought the same thing lol

    • @jasonking1284
      @jasonking1284 2 роки тому +7

      @@DanielADickey Well, it would be something like:
      Bird "Flap, Flap, Flap"
      Robin "Flap,Flap,Flap,Flap,"
      Pelican"Flap, Flap, Flap"

  • @striemmpegs
    @striemmpegs 3 роки тому +445

    I understand you more easily than my lecturers

    • @striemmpegs
      @striemmpegs 3 роки тому +6

      😭😭😭🙏My first response ☕. U just made my evening.

    • @KengHTT
      @KengHTT 3 роки тому +3

      @@striemmpegs Yea he's still better than any of my CS Teachers! :D

    • @demarbrown439
      @demarbrown439 3 роки тому +2

      Underrated comment

    • @SFXLibrarySoundEffectsforfree
      @SFXLibrarySoundEffectsforfree 3 роки тому

      Its not that weird when all of my CS teachers are 60 years old ++

    • @wassimrahmani3561
      @wassimrahmani3561 3 роки тому

      Because he understands it better than our lecturers

  • @zerogx5
    @zerogx5 3 роки тому +144

    Petition for Alex to create a Patreon for the solve purpose of uploading the video footage of him saying: "KWAAH KWAHAH KWAHA".

  • @bryanshi1059
    @bryanshi1059 3 роки тому +62

    Its like 1 am and I'm cramming for an exam, didn't expect to hear that sound at 4:04

    • @adabkaur5416
      @adabkaur5416 3 роки тому

      Haha I get you.. same here :D

    • @noorulfa5277
      @noorulfa5277 2 роки тому

      But it help release my stress 🤣

  • @elaynemedina3317
    @elaynemedina3317 Рік тому +47

    I'm new to coding and I'm struggling my way through learning to code. Whenever I search a topic and see your face I instantly feel better. Thank you for being awesome. Even though you stopped doing them. Your passions are important and very cool. You're awesome!

  • @latedeveloper7836
    @latedeveloper7836 3 роки тому +92

    0:23 Polymorphism meaning and context (many forms of a method)
    1:33 Going from one form of a method to many and how polymorphism comes in
    1:50 Using inheritance to create another bird with the same sing method (e.g. with a sub-type of a bird)
    3:30 When 2 instances the same method are used, prioritises the one in the same class

    • @janamhameed3774
      @janamhameed3774 2 роки тому +23

      4:05 perfectly cut scream

    • @audreyloh1022
      @audreyloh1022 3 місяці тому

      4:05 When alex made the kwah sound that he's never repeating in his life.

  • @QuocDatPhung
    @QuocDatPhung 3 роки тому +25

    This is flawless. I just spent 2 hours in a lecture and not understand anything and you taught me polymorphism in 5 min. I subscribed.

  • @joachimsanchez3006
    @joachimsanchez3006 3 роки тому +11

    This guy explained 200 pages of my inheritance and polymorphism module in just freaking 5 mins... I'm switching to this professor haha

  • @youneschoukri1184
    @youneschoukri1184 3 роки тому +40

    You deserve a medal of honor for being a top-notch Java teacher!

  • @carol00210
    @carol00210 7 місяців тому +12

    It's just amazing how you take such complex concepts and make them so simple! Thank you so much!

  • @harshasuresh4062
    @harshasuresh4062 Рік тому +16

    Alex, I have big news! I have officially finished watching of your Java tutorial playlists and man, all I can say is Thank You So Much!! The way you explained each topic clearly and in a way that is easily understandable was so so so helpful! Thank you for calming us down as well at the beginning of some of the videos 😅 You are so so great and I really appreciate all your help Alex! Good luck to you ♥

  • @AMANSINGH-yv4vv
    @AMANSINGH-yv4vv 3 роки тому +7

    Just completed the intermediate playlist with this video. Travelled a long from Basics 1, 2 to intermediate . I kept on practicing along with you - it was an awesome experience all together. Will start with the last playlist of practice programs now . Thanks so much Alex - Stay healthy and fit and keep making awesome videos like this

  • @jacobdavis4017
    @jacobdavis4017 3 роки тому +4

    You made the concept of polymorphism so much easier to understand, i've been struggling for an hour with my textbook until i gave up and went to youtube. Thank you so much for making this video Alex!

  • @k8vui
    @k8vui 3 роки тому +17

    The timing of this video release is impeccable. We had our discussion on polymorphism today and i understood none of it. Thank you for being my actual teacher!!! 😂❤

  • @valeriaayestas9293
    @valeriaayestas9293 8 місяців тому +1

    I'm learning coding & your videos help me out soooo much!!!! If I'm overwhelmed, I just search the topic in your videos & I feel so much better! Your way of explaining makes it so much easier to understand! thank you dude!

  • @main.aagam.
    @main.aagam. 3 роки тому +33

    Hey Alex. You make some great content dude. In fact, I recommend my computer science friends to watch your content. Keep it up dude

  • @EdwardCharron
    @EdwardCharron Рік тому +1

    Could not wrap my head around several concepts, you just made it so clear. I saw your explanation of Abstraction, and now this one. Thank you. Big Thumbs up, and THANK YOU. Going to watch more. So many youtube videos and sites I went to and a lot of them explained it so that you could almost understand it, but your explanation nailed it.

  • @Nafesah13
    @Nafesah13 3 роки тому +4

    Today, just finished watching all your Java videos from Java basics 1 to Intermediate, after one week, I can fully admit that Alex has helped me understand Java concepts which I was struggling with before. Thank you so much for your hard work and dedication.

  • @arcadence7619
    @arcadence7619 3 роки тому +3

    Bro we spent about an hour learning about polymorphism in class yesterday and i still didnt understand. You explained so much more clearly than my professor in less than 5 minutes.... thank you!

  •  3 роки тому +3

    Wow. I can't believe how you made it so easy to understand in minutes! I appreciate it! I listened polymorphism from two different teachers (even one of them was in my native language) I didn't understand it yet more confused. But you made it crystal clear. 💐💐💐💐

  • @nekozutto996
    @nekozutto996 3 роки тому

    Glad found this channel, just watched a few vids and I'm understanding code better than most my lectures thank you.

  • @matthewstrong7763
    @matthewstrong7763 2 роки тому

    I love videos like you that explain things succinctly, while covering every topic. Keep up the good work!

  • @priyabharti4236
    @priyabharti4236 8 місяців тому

    I have watched many videos to understand polymorphism...and u made it so easy. .thankyou...

  • @mohamedmusthaqeema9069
    @mohamedmusthaqeema9069 3 місяці тому

    Thanks man ,you are making the concept soo clear and understandable keep rocking

  • @robertoschinelli2147
    @robertoschinelli2147 2 роки тому +2

    I'm kind of new in java and everytime i need to learn something new i check this videos. You are great, so simple to understand and extremely comfortable to repeat the code. Maybe the only thing that can be useful is to have also a file that includes the code that you did in the end of the video, cause sometimes i check the lessons 2-3 times and having the text written (also in a text edit idk) could be awesome. thank you so much for the great work, you are AWESOME!

  • @immarisabel3452
    @immarisabel3452 3 роки тому

    Omg I love you! I've spent the last 3 days trying to understand this and all I get are triangles or car examples, both which I hate. This was so much more to the point! I feel I can move on! Thank you!

  • @anthonyrojas9989
    @anthonyrojas9989 Рік тому

    Thanks Alex, I'd love to see more vids from you about this topic. They're solid!

  • @betatitan5351
    @betatitan5351 Рік тому

    I love the cut off just as you made the sound of a Pelican, that made the video so hilarious which I never would have expected from a Java tutorial. I really appreciate the work you do!

  • @MooChow
    @MooChow 6 місяців тому

    DUDE!!! This is the best explanation I have seen. This is going to be what I use to explain it in my interview tomorrow.

  • @ogurinkaben
    @ogurinkaben 2 роки тому

    This guy makes me want to properly learn Java.
    Teaching style is so easy to understand.
    Give this man a medal!

  • @carolynpomaizl1668
    @carolynpomaizl1668 2 роки тому

    THANK YOU!!! I've been wracking my head for the last hour and your video helped me finally understand !

  • @fishdawn1804
    @fishdawn1804 2 роки тому +1

    Bro! Thanks for this tutorial. For years, I have struggled with understanding polymorphism be cause lecturers have habit of going zig zag ways in explaining something that’s supposed to be simple. For the first time I am able to clearly understand and apply polymorphism. You’re simply the best! Good job at the KWAA KWAA KWAA 😀.

  • @evanbyrd4346
    @evanbyrd4346 3 роки тому +8

    Straight to the point. Perfect

  • @skrappappap2130
    @skrappappap2130 3 роки тому

    Happy found you mann !! Im learning this just now. Thanks, bro.

  • @fuzedcable5612
    @fuzedcable5612 3 роки тому

    Thank you! I’m finally understanding how extends works!

  • @IDK-kv8ob
    @IDK-kv8ob 7 місяців тому

    You have been a God() send during my Java classes. Thank you for your time and efforts.

  • @sachithiyengar4778
    @sachithiyengar4778 3 роки тому

    Straight to the point and simple. Thank you bro.

  • @jasonwood5024
    @jasonwood5024 2 роки тому

    Thank you for these videos. Going to college online, the material and access to professors is never consistent or the best quality. These have helped me so much.

  • @WahidAhmadRustaqi
    @WahidAhmadRustaqi 10 місяців тому

    I read a section of my book, about the polymorphism but didn't got it right, but now I have the best understanding, thank you.

  • @hususlu6302
    @hususlu6302 2 роки тому

    Thank you, I have a interview tomorrow. I prepared it with your videos. You are making very easy to understand probably because of your super understanding of concept...

  • @yoshinoyuhh
    @yoshinoyuhh 3 роки тому +1

    You couldn't have posted this at a better time lol I really needed this right now thank you so much!!

  • @champ853
    @champ853 3 роки тому +2

    Wow I was just looking for a polymorphism video from you on Tuesday!

  • @kelvinforde5293
    @kelvinforde5293 3 роки тому

    Straight to the point and understandable, none of this 50 minute lecture type of thing on one topic like my college

  • @qevivcreations8536
    @qevivcreations8536 3 роки тому

    Love your channel, after i read something from the book, i do some exercises, and then i also watch a videos related to the topic

  • @kszoknyik
    @kszoknyik 3 роки тому

    I was reading on polymorphism forever and didn't grasp the concept... at all! then I watch your video and understand it in 5 mins! thanks so much!! :)

  • @hopeforeman7601
    @hopeforeman7601 3 роки тому +1

    I AM LEARNING THIS RIGHT NOW, thank you for uploading this!!!

  • @samihonib4433
    @samihonib4433 3 роки тому

    thank you so much for taking your time to share usefull info. I live in Denmark. Im gonna share your channel with my classmates.

  • @RockstarworldNet
    @RockstarworldNet 3 роки тому +6

    You taught me Polymorphism while I'm in university. Thank you!

  • @seabass6106
    @seabass6106 3 роки тому +1

    Hi Alex! Thanks for sharing your point of view!
    The lessons shine a different light on the subjects you discuss, which is helping me understand things so mutch better!
    I have a request, could you maybe spend some time on Java Collections Framework?
    Cheers!!
    Keep making these great videos!

  • @lemastik8679
    @lemastik8679 3 роки тому +2

    bro i was watching your old JAVA LOOP VIDEOS and you are just amazing
    JUST AMAZING
    love your explanation bro
    thx a lot bro AND love FROM INDIA

  • @svetlanatrosko6524
    @svetlanatrosko6524 3 роки тому +2

    Uhu! It was really easy to understand polymorphism with you, Alex! Thanks a lot!

  • @MrJakson112
    @MrJakson112 2 роки тому

    I'm studying Computer Science at RUC in Denmark, and this video is part of my curriculum on 2. semester :)
    Great video!

  • @user-zf8gy1yw1p
    @user-zf8gy1yw1p 3 роки тому +21

    4:05 YOU DARE CHALLENGE THE PELICANS?!

  • @joryanli2869
    @joryanli2869 6 місяців тому

    So much better than my professor. Your video saved my final! Thank you!

  • @realdobeja1706
    @realdobeja1706 Рік тому

    For me the crucial part was one sentence when you said that method with many forms.From there it was easy to take everthing. Thank you

  • @khanf13
    @khanf13 3 роки тому +3

    i wish i found this channel when i was in first year cs lol...i struggled so damn much because the profs convoluted everything.

  • @UpperGroundNGU
    @UpperGroundNGU 3 роки тому

    Thank you. I wasn't able to fully understand my lecture notes. But after watching your videos I've been able to do the practical questions without having to look at their notes(I do anyway obviously)

  • @fagolbeti2354
    @fagolbeti2354 3 роки тому +1

    Thanks man your efforts are truly appreciated. Cheers!!

  • @idzhanskhairi5172
    @idzhanskhairi5172 2 роки тому +1

    Hi Alex thank you for this videos because I started to understand it way much better than my 2 hours of lecture session. May I request a video about overriding and overloading more detail about it?

  • @NiceChange
    @NiceChange 9 місяців тому

    This is a great video for understanding poly. good reference material.

  • @bhaveerathod2373
    @bhaveerathod2373 11 місяців тому

    thank you so much alex ur absolutely saving my cs marks

  • @umarhasnain7369
    @umarhasnain7369 3 роки тому

    Excellent fabulous exciting wow way of explaining polymorphism. I know nothing of java and not even basic syntax. But I understood polymorphism clearly from it. Thanks broh.
    From Bangladesh

  • @KillerFaceification
    @KillerFaceification 2 роки тому

    I am taking Computer science II and your videos have really helped me.

  • @johnmorrison519
    @johnmorrison519 Рік тому

    dude thank you very much I'm taking BSIT your tutorials are so helpful

  • @ethanposcic1373
    @ethanposcic1373 2 роки тому

    You’ve outdone yourself m8 Thank you this was very helpful. Keep up the good work. Same goes for the inheritance vid

  • @alberthole3696
    @alberthole3696 3 роки тому

    I am in my 1st year of college of SoftDev and honestly I knew how to use it but did not understand HOW it worked. Now it makes sense. Thanks

  • @pauleboselume3369
    @pauleboselume3369 3 роки тому

    Thank you so much for your videos. It has really really really helped me a lot!!
    Keep up the good work.

  • @deliveringIdeas
    @deliveringIdeas 3 роки тому

    Amazing Vid alex, you saved my LIFE

  • @kevinolvera8124
    @kevinolvera8124 Місяць тому

    The pelican noise was so funny😂😂😂, the cut right after too

  • @chadz1148
    @chadz1148 3 роки тому

    best one explaining it so far.. Congratz new sub

  • @mlouk4797
    @mlouk4797 3 роки тому

    First time watching your video, The lesson so clear

  • @the_jones528
    @the_jones528 2 роки тому +1

    My teacher talked for hours about polymorphism. He made it sound so much harder than it actually is cause he kept repeating himself. You are saving our college lives man.

  • @quetzaltpa4450
    @quetzaltpa4450 Рік тому

    Im taking college class and the professor did not explain that you did. I got it a little bite right now! Thks!

  • @abrar8133
    @abrar8133 3 роки тому

    Thank you so much. This is the best explanation ever on polymorhphism!

  • @jackscalibur
    @jackscalibur 2 роки тому

    Wonderfully explained!

  • @ashleythompson2652
    @ashleythompson2652 3 роки тому

    Alex you are the best. This helped me so so much!

  • @marcusslover
    @marcusslover 3 роки тому

    Super cool as always, good job!

  • @tbq99
    @tbq99 2 роки тому

    u gave me zero anxiety in understanding..thankss

  • @SammyBoo550
    @SammyBoo550 3 роки тому

    You made it so easy to understand!

  • @ahmadsalem4558
    @ahmadsalem4558 3 роки тому +1

    awesome best youtuber ever for learning java

  • @asleyeizmendiz331
    @asleyeizmendiz331 3 роки тому

    thank you very much for your videos. you are very good explaining

  • @elenawoodbury7949
    @elenawoodbury7949 3 роки тому

    I’ve been waiting for this video!

  • @mrsbillypenaflor
    @mrsbillypenaflor 3 роки тому

    Thanks Alex this is brilliant!

  • @ssava_ema
    @ssava_ema Рік тому

    Am understanding this thing more because you exist thank you bro sooo much 🤝🤝

  • @zacharyfewins8087
    @zacharyfewins8087 7 місяців тому

    Some good pelican noises there. The cut past you making said noises gave me a good chuckle.

  • @aya.luxury.couture
    @aya.luxury.couture 3 роки тому +3

    dude his videos are so short but he explains so damn good i wish they were a little longer

  • @hassannasser-di7jd
    @hassannasser-di7jd 3 роки тому

    i am so thankful for you ,thanks a lot alex you helped me a lot :)

  • @charlykrueger9973
    @charlykrueger9973 3 роки тому

    I really love your tutorials!

  • @aliastar5616
    @aliastar5616 Рік тому

    he is perfect in explaining, teaching and funny 💕💕👌🏾👌🏾

  • @elainabowman8695
    @elainabowman8695 2 роки тому

    thank you! youre saving my undergrad life

  • @Anton-tq5ji
    @Anton-tq5ji 3 роки тому

    Fave tutor in all of UA-cam

  • @pranaydasari8821
    @pranaydasari8821 2 роки тому

    Well explained bro!

  • @sagarbadu9418
    @sagarbadu9418 3 роки тому +1

    Bro please make basic java projects tutorial series pleaseeeee 🙏🏻🙏🏻 You explain so well.

  • @RP-nb3ym
    @RP-nb3ym 3 роки тому +1

    This guy literally creates tutorials that dont sound like a drunk guy made them. Tyvm

  • @brandonnoll5527
    @brandonnoll5527 3 роки тому

    You should make a part 2 going into static and dynamic types and how those affect method calls. Thanks for the vid!

  • @HM-kd3jf
    @HM-kd3jf 2 роки тому

    you are way better than my CS teacher, thank you so much!

  • @user-tw5oi2qb9n
    @user-tw5oi2qb9n Рік тому

    Very clear :) Thank you thank you

  • @isabellebarga5918
    @isabellebarga5918 3 роки тому

    you are doing gods work! thank you!

  • @muhammadaqilsuhazireza1227
    @muhammadaqilsuhazireza1227 4 місяці тому

    I LOVE YOU ALEX LEE THANK YOU