Java Polymorphism Fully Explained In 7 Minutes
Ғылым және технология
Complete Java course: codingwithjohn.thinkific.com/...
What does polymorphism mean in Java? So many classes and courses overcomplicate it, but polymorphism is really super simple. We'll talk about what polymorphism means in Java, and go over two different kinds.
Polymorphism is one of the 4 core concepts of Object-oriented programming languages. And it's such a scary sounding word, but it refers to a simple concept.
Learn or improve your Java by watching it being coded live!
Hey, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java developers.
Let me know what else you'd like to see!
Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.
📕 THE best book to learn Java, Effective Java by Joshua Bloch
amzn.to/36AfdUu
📕 One of my favorite programming books, Clean Code by Robert Martin
amzn.to/3GTPVhf
🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial
www.audibletrial.com/johnclean...
🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)
bit.ly/3QPNGko
📹Phone I use for recording:
amzn.to/3HepYJu
🎙️Microphone I use (classy, I know):
amzn.to/3AYGdbz
Donate with PayPal (Thank you so much!)
www.paypal.com/donate/?hosted...
☕Complete Java course:
codingwithjohn.thinkific.com/...
codingwithjohn.com
Пікірлер: 423
This guy is way too underrated 🔥
@electronoob7341
2 жыл бұрын
Yes!
@MrSkinkarde
2 жыл бұрын
Boring stuff
@SakkePie
2 жыл бұрын
@@MrSkinkarde why are you watching if you're not interested 😂
@sauravrajmitra6804
2 жыл бұрын
He was born to teach Java
@turuus5215
Жыл бұрын
@@MrSkinkarde You're Finnish, aren't you?
My Univ. professor couldn't explain it to me like this over a whole semester! Now here I am understanding it in under 10min. Thank you!
@King-cv6mn
2 жыл бұрын
Perhaps you should have come here first
@michimarz
Жыл бұрын
John has some very good videos, but this one is kinda disappointing, I'd say. It's not exactly polymorphism what John is explaining here. It's more like he's only describing inheritance. That said, I think you should have listened more carefully to your Professor instead.
@techatival
Жыл бұрын
"If you can't explain it simply, you don't understand it well enough." - Albert Einstein
@Veer34286
Жыл бұрын
maybe bc you love dogs and cats
@justspacing9031
9 ай бұрын
@@michimarz What? Did you even watch the video?
2024 and this is still the best short explaination of polymorphism on KZread.
@piotrek7633
4 күн бұрын
Maybe theyre wrong
Very good videos. You explain things in ways that eliminates confusion and covers all bases.
Dude. You really just saved my entire life. I was having so much trouble understanding how to explain polymorphism and putting it into my own words. You explained it so perfectly in so many ways. Great content!
@mmq6525
Жыл бұрын
lol entire life? a little dramatic aren't we
@smeboo9044
10 ай бұрын
@@mmq6525got somethin’ to prove now do we?
@EkThaKingMan
7 ай бұрын
@@mmq6525 bros got gun to his head by boss as we watch
It's always nice to see you still got the basics down, even though I think I never EVER went and thought "I'm gonna use polymorphism on that sucker", but just went and did it.
That was such a simple explanation that was being made WAY too complicated in my class. Thank you for putting this stuff out there.
Subscribed! with polymorphism also you can always assign a subclass object type to a super class reference type like that Animal cat = new Cat(); Animal dog = new Dog(); Animal a = new Animal(); Since Animal cat = new Cat() | | | | Reference type object type Happy coding everyone.
@MrSelmanceltiker
2 жыл бұрын
Actually this is the correct explanation of polymorphism. The video content explains inheritence mechanics of OOP. Inherıtance provides child class type object act like parent class type object by inheritence. Polimorphism provides parent class type object can act like chıid class type object. Internal mechanics are very different.
@elizaalwani9200
2 жыл бұрын
So does the reference type or object type determine which method is used
@KaraSuraDraw1
2 жыл бұрын
@@elizaalwani9200 The object type
@brutusjackendy3658
Жыл бұрын
@@elizaalwani9200 The object type does.
@nolan_villeneuve
Жыл бұрын
@@elizaalwani9200 the object type does. BUT the availability of methods is determined by the reference type.
Thanks John! After hours of trying to find a clear explainaton you wrapped it up in 7 minutes, thanks again!
Thank you! I'm so happy that I found your video. I definetely watch other content from you, since you explain this topic so clearly. This makes so much more sense even in English compared the videos of my native language in which I just don't understand this subject at all.
Hi John, thanks for your Java tutorials with non-monotone voice. If you can explain more about composition and aggregation in Java that would be great (your explanations are easier to digest compared to other youtube tutorials)!
The fact that this was explained so perfectly and clear and it just clicked so well. Amazing job done!
I don't know how to express my gratitude dude, you've saved me. I've been struggling really hard with my Java class and you have a gift for explaining in a way that scratches my brain the right way.
I really wish I had found you and your channel months ago. Even though you are speaking fast, I am grasping and retaining the concept to write into code. Thank you so much!!!
Thanks for the video! You're helping a beginner coder in college out quite a bit :)
Great explanation. I've been trying to study up for an interview (has been years since I graduated and been in a different field so I forgot everything). When I was studying it wasn't clear that method overriding and method overloading were part of Polymorphism. They made it seem like they were totally different things so thank you for clearing it up!
John is so concise in his teaching, my lecturer literally takes two hours to cover the exact same concepts
@eternalflames911
10 ай бұрын
memento mori
@mrtoast244
10 ай бұрын
@@eternalflames911 🖤🤍
excellent spent 2 hours watching diff videos to understand the concept but you explained way better and way easy from all of them
Very clear and easy to follow. Thanks John ✌
The best Java programming youtuber !! Wish I had known his channel back in 2021 beginning when I started the programming module in Uni.. Explains way better than many of my lecturers ! Thank You !!!
Long time im out of programming life but seeing this video kinda make me happy remembering some stuff. Also very good explanations!
You have no idea how I struggled to understand this, about 5 hours before exam i stumbled upon this video, thank you. It was super easy to understand, never thought someone could explain polymorphism this way
O that's great and I'm learning more on your channel! Thank you for this! Love from the Philippines!
I always wonder why University teachers spend whole semester to explain the topic but you still don't understand, but here on you tube you watch 7 minutes video about the topic and fully understand what the heck it is all about . Thank you John very much for your great content!
@eric.m5790
Жыл бұрын
University teachers are not programmers. If you want to learn how to swim i think its best to learn from someone that already knows how to swim
@michimarz
Жыл бұрын
John has some very good videos, but this one is kinda disappointing, I'd say. It's not exactly polymorphism what John is explaining here. It's more like he's only describing inheritance. That said, I think you should have listened more carefully to your Professor instead.
@JJJJ-gl2uf
Жыл бұрын
Surely your college teachers aren't spending an entire semester explaining one concept to you. Java [programming] doesn't come easily or quickly to everyone, maybe hit the books a bit harder or do what you're doing here: supplement your college lessons with YT videos.
You are an amazing teacher, know that. I've been doing a lot of java courses and these topics are always convoluted and extremely difficult to understand, but you've managed to explain in a simple way. Thanks!
This was a fantastic explanation that I was able to wrap my head around, bravo good sir!
I'm in a Java course and wasn't understanding this topic. Now its perfectly clear. THANK YOU!
You're way of explaining is playful and very expressive. ❤️ it
Unbelievably clear. Thank you!
Just found you today and am so thankful I did! Thank you!!
Wow this is just amazing. Currently studying computer science and you help me so much!
Man how did i only find this channel now great content so easy to understand concepts the way you explained in this video!!
I think what you have described here is simply inheritance & method overloading. Polymorphism is a bit more advanced than that. You could for example have declared the cat and dog objects as Animal. That would at least have introduced the concept of polymorphism.
Very well explained! Thank you John for sharing this
excellent video. I am a CIS student this is now starting to all make sense.
Thank you for the videos. I have humble request for you to make a clear and understandable videos regarding polymorphism via inheritance and polymorphism via interface and passing an object as argument. Thank you once again for good video.
Thank you for the clarification on overloading vs overriding.
Thank you so much. I was looking at a video at linkedin learning an I was about to quit learning java due to that video. You made it so simple and easy. Thank you from the bottom of heart.
Thank you, please do for the other 3 java core concepts as well!
Thank you for making these videos. You are a great teacher and communicator. Kind regards. 🙂
Heyy thank you for this video. Your pronunciation as well as explanation are really easy to understand for a Vietnamese student like me. Keep uploading more informative video please 🙏 Have a nice day ☺️☺️
straight to the point way of explaining this concept, most others just over-complicate it and are needlessly verbose.
i usually never comment on videos, but this guy deserves it all. help me finally end my struggle with CSE 205.
Ur explanations are as clean as ur code John. Thank you
Your channel is still very new, but wow, if you keep this up you're going to grow exponentially. Love your content please keep it up.
Well done my guy. Great video
awesome video. The code examples really help too! I use method overloads all the time in c# systems class but didn't know it's a result from polymorphism. Thanks
Hi,John...you made my life so easy..was struggling to understand the polymorphism concept until i found your video...much love from india
this was very helpful! Thank you so much, John😀
You really are a great explainer, thank you! I also didn't get the concetp at uni
Thank you for helping me get through my first year as a graduate student!
Thank you for the content and for being humble, keep it up :' ) Much Love.
Thanks!! you doing a great job explaining this!! Really appreciate!!
Simple and clear explanation, thanks John!
Amazing explanation. I'm sure you already know but your teaching skills are helping thousands of students including myself. Thank you so much!
You have not fully understood a problem if you can not explain it to someone else. This guy is an expert in his field making the explanation affordless
Finally found a video and understood it. Thanks man
Thank you sir for making this concept easy to understand.
Very helpful! Thanks for sharing!
So fun with John...geez I have to get his training...makes Java fun.
One of the best! thank you brother John :)
Clear and to the point, great video
Explaining what my comp sci professors couldn't explain during lectures...I do realize you have the benefit of hindsight and editing to make videos go a lot smoother than lectures, and there absolutely is value to lectures since we can actively ask questions and receive answers...But the way you structure your videos has been all but confusing thus far. Love this page.
Hey really great video, u make it look easy.. thx!
Great job! Very clear explanation.
Thanks for excellent explanations
He made it Simple. Thank you 😊
It was a nightmare to find a video to understand Polymorphism. Thanks a lot.
Words fall short to convey how helpful this lecture was sir.Thank you ❤❤
Really learn a lot.Thx
this was great! Thank you!
Man thank youj, you are doing a great job.
BRO THANK YOU SO SO MUCH U CHANNEL IS SAVING MY LIFE RIGHT NOW
Thank you for explaining the topic so well..... I found your material way easier to digest than my java class! Doing God's work out there.
WOW no words would express how useful your videos are 🙏
This guy knows the art of teaching, he explained all the concepts in such a smooth way, he makes learning fun & interesting 😇👍
this guy explained a concept in 7 minutes so much better than my professor could in 2 hours. Unreal man. Such a lifesaver
Awesome now I will never forget about method overriding and overloading
Realy great explanation with a simple example!
That was sick Well explained
Think you so much for this great explanation.
Very fast and excellent lecture!he suits me!
Thank You So Much Sir very well Explained.😀 God bless You
You're really good at explaining/teaching! If I pass my midterm, I'll owe my grades to you lol
This is huge info, THANK YOU!
This was good! Thank you!
very helpful. Understood polymorphism and encapsulation in less than 30 minutes.
Love this! Thank you
you are just amazing tutor!!!! 💻💪🏼
Very clear explanation thanks a lot
Simplest and best ever explaination
I got override just at this time . many thanks !
It would be great to bring these concepts to design patterns explanations
You're such a good teacher! Thanks!
@CodingWithJohn
3 жыл бұрын
Much appreciated, glad I can help!
Yo, can u make a video on explanation of Method Overriding in JAVA ,would really love to watch your explaination
My dude is awesome. Would be awesome to work under someone with his knowledge...and humor.
Hi John, you are such an awesome teacher.
it was veeeeery hulpful thank u a lot 👏👏👏👏👏👏
Man you are a savior! Now i finally understand it!
amazing! much appreciated