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

4.7: Introduction to Polymorphism - The Nature of Code

865 ratings | 41089 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 (64)
Tsubaki13 (11 days ago)
So basically polymorphism is inheritance? What's the difference?
Karmaindustrie (15 days ago)
can i write for (Dog d : Kingdom) { d.sleep() } ? in order to only loop through the dogs.
Swastik Bhat (2 days ago)
I think this would work but, it would only put the dog to sleep not other animals.
Halef Spencer (1 month 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 (1 month ago)
best explanation ever , thanks
CrazyPirateMonkey (1 month ago)
Best code teacher I could ever find. I am so happy to be here.
Ratabah Mehras (1 month ago)
Wow!! You simply save my day.. ♥
sdaf (2 months ago)
This guy's enthusiasm is addictive.
Holthuizen oemoet (2 months ago)
simply amazing , your explications are fantastic !
kossyoto1 (2 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 (3 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 (3 months ago)
Dude ...I quess your students won't afford to miss any of your class ,Profesori
Manifacier Ian (3 months ago)
Daniel you are the best!
Ahmed Tabti (3 months ago)
:) very good exempl its very helpful for inderstanding polymorphism ,thanks very mutch ,
marek zegarek (3 months ago)
well done, sir.
Aykhan G (3 months ago)
I don't understand after 6.30. What is that class?
Yazan Salman (4 months ago)
You Are Awesome
Hossein (4 months ago)
Thanks you, it was very helpful to know what is Polymorphism
Saadiya Fourie (4 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 (5 months ago)
Awesome. You're a great teacher. :)
Anonymous 42 (5 months ago)
Hooray!!
Faisal Adil (6 months ago)
That was fun to look.
kidd Ba (6 months ago)
I really enjoyed your video!!thank you so much!!
TheUsman141 (6 months ago)
wish i could give 100 likes
ALMIGHTY ENGINEERS (7 months ago)
Man you are incredible....... how do you do this!?!? your videos made my day 💖💖
Jie Lyu (7 months ago)
good video!
DaveKeehl (7 months ago)
I love you so much
RandomVeda (7 months ago)
yasss. Finally a FUN java lesson.
michał botor (7 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 (7 months ago)
I love how fun you are, don't often smile so helplessly when I learn JS
Daniel Velazquez (8 months ago)
Effeciently and effectively explained - extra credit for the passion. You've earned a new sub
Satoshi Nakamoto (8 months ago)
i always wondered how big is his board
A (8 months ago)
GREAT ACCENT!! I can understand everything :)
Tim Sandman (10 months 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 (10 months ago)
1:29
SG BOSS (10 months ago)
ty mate
EmporerAxel (10 months 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 (10 months ago)
Thank you so much. You really helped me understand it.
Anthony Jones (11 months ago)
Thank you so much for this video, I finally understand what Polymorphism means now!
kustomweb (11 months ago)
1000 new subscribers every day. Great channel
Nickson Mlelwa (11 months 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 (7 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 (1 year 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 (18 days 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 (2 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 (5 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 (2 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 (11 months ago)
can you not also do if( a instanceOf Dog){ execute method defined in dog class} ?
The Coding Train (2 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.