HomeОбразованиеRelated VideosMore From: The Coding Train

4.7: Introduction to Polymorphism - The Nature of Code

1117 ratings | 51520 views
This video looks at the topic of polymorphism in object-oriented programming. Read along: http://natureofcode.com/book/chapter-4-particle-systems/#chapter04_section6 https://github.com/shiffman/The-Nature-of-Code-Examples/tree/master/Processing/chp4_systems/NOC_4_05_ParticleSystemInheritancePolymorphism Help us caption & translate this video! http://amara.org/v/QbwE/
Html code for embedding videos on your blog
Text Comments (77)
Gregasaurus (1 day ago)
great teaching style. dynamic, fun and clear af.
Jurjen Sleebos (12 days ago)
I so wish you where my teacher right now.
fan song (19 days ago)
I thought its something about gene
good boy <3
Muhammad Ali (1 month ago)
Btw in the video are you assuming that the methods are already overriding similarly named methods from the parent class. Because if you're calling methods that are only in the child class on their own, that'd lead to an error
blake johnson (1 month ago)
You're the best
Muhammad Ali (1 month ago)
nicely explained. btw what playlist is this a part of?
The Coding Train (1 month ago)
It's part of this series. https://www.youtube.com/user/shiffman/playlists?view=50&sort=dd&shelf_id=6
Wing Ng (2 months ago)
beautifully explained. Thank you!
Eddie (2 months ago)
third polymorphism video, finally got it. Thanks!
Johnson (2 months ago)
You are by far the best code teacher!
THE best 4 THE best (2 months ago)
can u do more videos about the nature of code pls
Smart Programming (2 months ago)
awesome, just awesome, thanks a ton for the tutorial 👌👌👌👌👍🙂🙂
Tsubaki13 (3 months ago)
So basically polymorphism is inheritance? What's the difference?
Karmaindustrie (3 months ago)
can i write for (Dog d : Kingdom) { d.sleep() } ? in order to only loop through the dogs.
Swastik Bhat (3 months ago)
I think this would work but, it would only put the dog to sleep not other animals.
Halef Spencer (4 months ago)
This is why I love youtube. Understood in a couple of minutes what a I couldn't understand on a 3h long lecture. Thanks a lot!!!!!
ZiadddTV (4 months ago)
best explanation ever , thanks
CPirateMonkey (4 months ago)
Best code teacher I could ever find. I am so happy to be here.
Ratabah Mehras (4 months ago)
Wow!! You simply save my day.. ♥
sdaf (5 months ago)
This guy's enthusiasm is addictive.
Holthuizen oemoet (5 months ago)
simply amazing , your explications are fantastic !
kossyoto1 (5 months ago)
Man, thank you so much for the great tutorial, I love the way you explain as well as the energy you put into you videos, learning from you a lot! Keep rocking!
k1awdttt (6 months ago)
Just want to let you know that your explanation is very good with great and clear examples. I'd love to see more abstract concepts being explained by you too, like using abstract class in concrete class in OOP designs, invariant and variant, observer vs observable, event-driven design, etc.
Joash Kick (6 months ago)
Dude ...I quess your students won't afford to miss any of your class ,Profesori
Manifacier Ian (6 months ago)
Daniel you are the best!
Ahmed Tabti (6 months ago)
:) very good exempl its very helpful for inderstanding polymorphism ,thanks very mutch ,
marek zegarek (6 months ago)
well done, sir.
Aykhan G (6 months ago)
I don't understand after 6.30. What is that class?
Yazan Salman (7 months ago)
You Are Awesome
Hossein (7 months ago)
Thanks you, it was very helpful to know what is Polymorphism
Saadiya Fourie (7 months ago)
YES SIR! You're amazing, appreciate the enthusiastic, relatable way you lay it down. I am so much more confident about Java.
Jack Roberts (8 months ago)
Awesome. You're a great teacher. :)
Anonymous 42 (8 months ago)
Hooray!!
Faisal Adil (9 months ago)
That was fun to look.
kidd Ba (9 months ago)
I really enjoyed your video!!thank you so much!!
TheUsman141 (9 months ago)
wish i could give 100 likes
ALMIGHTY ENGINEERS (10 months ago)
Man you are incredible....... how do you do this!?!? your videos made my day 💖💖
Jie Lyu (10 months ago)
good video!
DaveKeehl (10 months ago)
I love you so much
RandomVeda (10 months ago)
yasss. Finally a FUN java lesson.
michał botor (10 months ago)
really cool concept is this polymorphism. and your explanation of this and inheritance was so exceptional. now i finally understand them thoroughly.
Michuu (10 months ago)
I love how fun you are, don't often smile so helplessly when I learn JS
Daniel Velazquez (11 months ago)
Effeciently and effectively explained - extra credit for the passion. You've earned a new sub
Satoshi Nakamoto (11 months ago)
i always wondered how big is his board
A (11 months ago)
GREAT ACCENT!! I can understand everything :)
Tim Sandman (1 year ago)
So Simple! Wow After a year and a half I got it! Dan's videos are really great to watch. I am learning Java but they translate to any language at a certain level.
Jack Hanford (1 year ago)
1:29
SG BOSS (1 year ago)
ty mate
EmporerAxel (1 year ago)
Thanks so much for this, this was one of those concepts where I understood the theory but couldn't understand why I would use it or why it was so important. Your enthusiasm is infectious :)
Tyler Stephenson (1 year ago)
Thank you so much. You really helped me understand it.
Anthony Jones (1 year ago)
Thank you so much for this video, I finally understand what Polymorphism means now!
kustomweb (1 year ago)
1000 new subscribers every day. Great channel
Nickson Mlelwa (1 year ago)
Wow it's so nice sir!!!
Ikpoppy (1 year ago)
X Error:err
Daniel (1 year ago)
"I'll edit that out", always :)
michał botor (10 months ago)
it's like a running joke among creators these days. ;p
Richard Yuan (1 year ago)
who is that one dislike
the github link is dead :c
weltraumimport (2 years ago)
congrats to 200k subscribers!
miranda mayor (2 years ago)
In 8 minutes I understood what I could not understand with my teacher in 2 hours. Thank you so much
AwesomeHiding Spot (3 months ago)
So dammn true.. i read several tutorial on internet about this inheritance stuff..but they cant help me to understand clearly..but it only takes minutes to understand when i watch this
Jared Chong (5 months ago)
School is not really teaching people to be smart.Its to create industrial age employees. They taught people in a one way learning style and dislikes creative diverse ways of learning.
Marie Bure (8 months ago)
Same here :D!
JA L (1 year ago)
Right! People like him I would be happy to take a loan out and pay for this amazing teaching.
Ranjan Nayyar (3 years ago)
I have a question. If suppose I add another method into the dog class, which is an extended version of the animals class but this method does not exist in the basic animals class. I want to run that method in the same loop for (animals a: kingdom). I am assuming that is not possible.!
Horst koston (1 year ago)
can you not also do if( a instanceOf Dog){ execute method defined in dog class} ?
The Coding Train (3 years ago)
+Ranjan Nayyar It's possible but you would need to check if the object is a Dog object or not and then cast it as a Dog object. Something like if (obj.getClass().getName() == "Dog").
Isak W (3 years ago)
Videos 8 and 9 seem to be set as private in this Nature of Code playlist.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.