No video

4.7: Introduction to Polymorphism - The Nature of Code

  Рет қаралды 181,336

The Coding Train

The Coding Train

Күн бұрын

This video looks at the topic of polymorphism in object-oriented programming.
Read along: natureofcode.co...
github.com/shi...
Help us caption & translate this video!
amara.org/v/QbwE/
📄 Code of Conduct: github.com/Cod...

Пікірлер: 182
@mirandamayor2565
@mirandamayor2565 7 жыл бұрын
In 8 minutes I understood what I could not understand with my teacher in 2 hours. Thank you so much
@YoursTruelyMe2
@YoursTruelyMe2 7 жыл бұрын
Right! People like him I would be happy to take a loan out and pay for this amazing teaching.
@MariaBure
@MariaBure 6 жыл бұрын
Same here :D!
@jaredchong4070
@jaredchong4070 5 жыл бұрын
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.
@ibuucoksiregar9024
@ibuucoksiregar9024 5 жыл бұрын
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
@gloverelaxis
@gloverelaxis 2 жыл бұрын
yeah a lot of teachers in CS are fucking useless. Dan actually understands teaching well
@sorosw2980
@sorosw2980 4 жыл бұрын
Y'all this guy is teaching with such enthusiasm, he gets my respect. 💯 Keep up the good work!
@halefspencer2725
@halefspencer2725 5 жыл бұрын
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!!!!!
@johnwt7333
@johnwt7333 2 жыл бұрын
What does it tell you about your intellectual skills?
@EmporerAxel
@EmporerAxel 6 жыл бұрын
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 :)
@saif0316
@saif0316 4 жыл бұрын
This is my first lecture to click on and I have to say, this guy is amazing. The level of enthusiasm he has is incredibly contagious.
@Chillaxzino
@Chillaxzino 4 жыл бұрын
This is my best tutorial on Polymorphism
@algoprism2833
@algoprism2833 5 жыл бұрын
Best code teacher I could ever find. I am so happy to be here.
@magik0630
@magik0630 4 жыл бұрын
congrats on your role in casa de papel, you did a great job
@nataliedelgado3990
@nataliedelgado3990 3 жыл бұрын
Hahaha I thought the same!
@drakulea4301
@drakulea4301 7 ай бұрын
finally an insightful understanding of polym... I feel as many people don't grasp the essence of polymorphism and they just see that polymorphism is child classes overiding methods from parents or interfaces, but in reality they are truly missing the point .. which is to create more flexible and reusable code that can accommodate various types of objects. so the power is the fact that you can lets say have a method pet(Animal a) in any other class and any object of a type that inhertis from Animal would be propper argument for that method.
@thekoolcatsesh1932
@thekoolcatsesh1932 3 жыл бұрын
It's funny you say that. I'm not "required" to watch your video, but it is a requirement for my studies to understand object oriented programming in abstraction, inheritance, polymorphism, and encapsulation; but you teach very well, and I understand it. I'm glad you're doing what you're doing.
@k1awdttt
@k1awdttt 5 жыл бұрын
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.
@Daniel20030
@Daniel20030 6 жыл бұрын
"I'll edit that out", always :)
@michalbotor
@michalbotor 6 жыл бұрын
it's like a running joke among creators these days. ;p
@regardspratik
@regardspratik 5 жыл бұрын
This guy's enthusiasm is addictive.
@manuelalfonzoml
@manuelalfonzoml 2 жыл бұрын
This guy teaches me more than a university teacher, and does it with such a goddamn passion. Thanks man!!
@ArmyLyra
@ArmyLyra 5 жыл бұрын
How i wish you are my teacher. I actually understand you under 8 min and i cannot under my lecturer for the past few months.
@salmagamal5676
@salmagamal5676 Жыл бұрын
YOUR ENERGY IS CONTAGIOUS AND I LOVE IT. thank you!
@poloska9471
@poloska9471 2 жыл бұрын
Great video! It was an easy enough beginning to be understandable by pretty much anyone with a programming-afluent mind and towards the end difficult enough to explain polymorphism in actual practice such that a person who doesn't know what polymorphism is, can pick up this principle and run with it to any heights they want to take it - whether that be just one extension of a class or many and usage in complex scenarios with all 3 principles of OOP playing a role.
@GermaphobeMusic
@GermaphobeMusic 4 жыл бұрын
Previous episode: 12,000 views This episode: 100,000 views Makes sense.
@littlecurrybread
@littlecurrybread 4 жыл бұрын
omg three textbooks and like five videos and i couldn't understand polymorphism but this video FINALLY helped me understand it, thank you!!!
@darkclove7365
@darkclove7365 5 жыл бұрын
Best video that explain polymorphism. Easy example to follow on the whiteboard, easier to follow this than someone trying to explain it in their way on the computer. Me, I knew what it was before going on this video, but had a hard time explaining it well in an easy way, even though it isn't a hard topic in itself. Maybe I'm just dumb. Much love!
@emex4gman2
@emex4gman2 3 жыл бұрын
Wow, thanks for this, 6yrs down and this is still valid
@fotoh1589
@fotoh1589 Жыл бұрын
You give me hope that this world is still livable
@jspesh
@jspesh 5 жыл бұрын
You are by far the best code teacher!
@screwyshow
@screwyshow 4 жыл бұрын
Extremely happy I came across this video.
@princeofxane
@princeofxane 5 жыл бұрын
After watching so many videos finally, he explains it beautifully. Thanks.
@anirudhgupta169
@anirudhgupta169 2 жыл бұрын
The quality of the content and the detail in which Daniel goes is very refreshing. I love the way he explains things and uses decent quality example. He is clearly quite passionate about programming and tech in general. But is it just me or is the content on this channel all over the place with very little to absolutely NO organisation and sequence to the content? It is impossible to follow a train of thought based on the serial numbers of the videos and/or the playlists. No links to earlier content that Daniel keeps referring to. For instance the Particle example, he is clearly using a library, but where, in which video is he doing the development environment setup so we can also follow his explanation while trying to simulate what ever he is explaining. That leaves me a little frustrated.
@the_calibrator
@the_calibrator 6 жыл бұрын
Effeciently and effectively explained - extra credit for the passion. You've earned a new sub
@cmarc2156
@cmarc2156 4 жыл бұрын
This is literally the best video on polymorphism in java
@systemloc
@systemloc Жыл бұрын
Really great. This video is short, efficient, and very effectively communicates the concept. You got another subscriber.
@benjaminrogers9848
@benjaminrogers9848 4 жыл бұрын
I know I'm a bit late, hope you see this but this was really fun to watch and helped me make a lot of connections of content I knew but couldn't put together until you burst onto the screen with an enthusiasm that students dream of, thankyou!
@unicorneyelasers
@unicorneyelasers 4 жыл бұрын
I absolutely love your enthusiasm! Very enjoyable to watch
@saadiyafourie
@saadiyafourie 6 жыл бұрын
YES SIR! You're amazing, appreciate the enthusiastic, relatable way you lay it down. I am so much more confident about Java.
@ahmedtabti2264
@ahmedtabti2264 6 жыл бұрын
:) very good exempl its very helpful for inderstanding polymorphism ,thanks very mutch ,
@michalbotor
@michalbotor 6 жыл бұрын
really cool concept is this polymorphism. and your explanation of this and inheritance was so exceptional. now i finally understand them thoroughly.
@ianr8060
@ianr8060 3 жыл бұрын
You explained polymorphism way better in 8 minutes than my Java teacher did in 2 hours.
@eddie9559
@eddie9559 5 жыл бұрын
third polymorphism video, finally got it. Thanks!
@primoashbee
@primoashbee 5 жыл бұрын
El Professor whats up. Excited for season 4!
@masouddayaghi5923
@masouddayaghi5923 5 жыл бұрын
I wish I could be happy like you
@timsandman
@timsandman 6 жыл бұрын
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.
@louiscouture9139
@louiscouture9139 4 жыл бұрын
Wow thanks. You made me understand what polymorphism is which my teacher couldn’t
@IRWBRW964
@IRWBRW964 9 жыл бұрын
Videos 8 and 9 seem to be set as private in this Nature of Code playlist.
@kossyoto1
@kossyoto1 5 жыл бұрын
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!
@aneiger8706
@aneiger8706 4 жыл бұрын
Absolutely the best video about polymorphism out there!
@ketchart2789
@ketchart2789 3 жыл бұрын
Thank you very much!! I really like your teaching style. You're like a ray of sunshine!
@urunclesam1659
@urunclesam1659 4 жыл бұрын
HOLY MARY MOTHER OF CHRIST THANK YOUUUU
@jafethgarcia4819
@jafethgarcia4819 2 жыл бұрын
Love the energy you put while teaching, makes it much more interesting! Thank you!!
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Thank you!
@cholasimmons
@cholasimmons 5 жыл бұрын
I wish you taught me programming when I first developed the interest
@laubes7481
@laubes7481 3 жыл бұрын
This guy is so incredibly passionete, so good!
@tsubarider13
@tsubarider13 5 жыл бұрын
So basically polymorphism is inheritance? What's the difference?
@SourabhBhat
@SourabhBhat 4 жыл бұрын
Using the methods from parent class (without overriding) is inheritance. Implementing/overriding a method in multiple classes is polymorphism.
@CStove
@CStove 4 жыл бұрын
I love his excitement
@wizardcodes5341
@wizardcodes5341 4 жыл бұрын
Amazing Job man Coherent communication .. salute
@weltraumimport
@weltraumimport 7 жыл бұрын
congrats to 200k subscribers!
@Ali-mi9up
@Ali-mi9up 5 жыл бұрын
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
@user-ec1py5nh8d
@user-ec1py5nh8d 5 жыл бұрын
Daniel, you are very very good at what you do. a life of meaning and purpose. I envy you Sir!
@sertcow
@sertcow 4 жыл бұрын
Wow I wish this guy knew everything in the world so he could teach me.
@muhammadovaissiddiqui3895
@muhammadovaissiddiqui3895 4 жыл бұрын
Finally understand polymorphism..!! 😍😍👏👏 Thank u sooo much sir for making this video.. ♥️
@ahmedbugti3152
@ahmedbugti3152 4 жыл бұрын
First time saw your video. Couldn't do much just subscribed.. Awesome.
@AnthonyJones_Linuxson
@AnthonyJones_Linuxson 6 жыл бұрын
Thank you so much for this video, I finally understand what Polymorphism means now!
@sarvinasalohidinova4881
@sarvinasalohidinova4881 2 жыл бұрын
It is the best video on this topic
@ThePersepolis32
@ThePersepolis32 6 жыл бұрын
Thanks you, it was very helpful to know what is Polymorphism
@Zagredful
@Zagredful 2 жыл бұрын
Respect to you, understood everything.
@alda-ir
@alda-ir 2 жыл бұрын
Wow, awesome explanation mate!
@Gregasaurus
@Gregasaurus 5 жыл бұрын
great teaching style. dynamic, fun and clear af.
@yeukaimutemachimwe9005
@yeukaimutemachimwe9005 Жыл бұрын
so interesting good teaching skill halalalaa
@jurjensleebos5058
@jurjensleebos5058 5 жыл бұрын
I so wish you where my teacher right now.
@RodrigoNishino
@RodrigoNishino 2 жыл бұрын
Very Nice ... I'm THIS CLOSE to dub you in Brazilian Portuguese
@Zakariya0101
@Zakariya0101 3 жыл бұрын
Thanks a lot, that was easy to follow and understand from the first minute.
@milindshinde5896
@milindshinde5896 3 жыл бұрын
Amazing explanation
@karmaindustrie
@karmaindustrie 5 жыл бұрын
can i write for (Dog d : Kingdom) { d.sleep() } ? in order to only loop through the dogs.
@swastikbhat5874
@swastikbhat5874 5 жыл бұрын
I think this would work but, it would only put the dog to sleep not other animals.
@WaterDragonFist
@WaterDragonFist 5 жыл бұрын
Must you first declare the dog class before declaring other dog objects of different classes? Or it doesn't matter? The objects would be created no matter what?
@joashkick4178
@joashkick4178 5 жыл бұрын
Dude ...I quess your students won't afford to miss any of your class ,Profesori
@ronglass5968
@ronglass5968 4 жыл бұрын
Thanks for the vid! This was very helpful. Great jumping off point for Polymorphism! (btw, watched the vids on inheritance first; best way to go).
@lazymacs2823
@lazymacs2823 5 жыл бұрын
What are the other situations that polymorphism is useful?
@supernovic99
@supernovic99 Жыл бұрын
This video was amazing!!! Thank you so much!!!
@maxim25o2
@maxim25o2 Жыл бұрын
And what if dog.eat(), cat.sleep(), If I loop thru vector, then I want only dog to eat, and cat do nothing. Do cat will be also not called from vector? Or it will be, but function of eat() for cat will not exist, and class cat will return just 0, from base class?
@Supwisebs
@Supwisebs Жыл бұрын
Love you Dan.
@SmartProgramming
@SmartProgramming 5 жыл бұрын
awesome, just awesome, thanks a ton for the tutorial 👌👌👌👌👍🙂🙂
@uday8112
@uday8112 6 жыл бұрын
Man you are incredible....... how do you do this!?!? your videos made my day 💖💖
@sameeruj
@sameeruj 4 жыл бұрын
Simply Awesome!
@debajyotibiswas9839
@debajyotibiswas9839 4 жыл бұрын
Such a nice tutorial!!!
@kiddba9716
@kiddba9716 6 жыл бұрын
I really enjoyed your video!!thank you so much!!
@LearnWithReshu
@LearnWithReshu 4 жыл бұрын
kidd Ba correct
@MsRisani
@MsRisani 3 жыл бұрын
You are an awesome teacher! Thank you!
@BoutinMathieu
@BoutinMathieu 4 жыл бұрын
Very nice job, thank you so much!!
@kustomweb
@kustomweb 6 жыл бұрын
1000 new subscribers every day. Great channel
@gplus46
@gplus46 2 жыл бұрын
Do the object/animals know they are distinct because of their identity name?
@holthuizenoemoet591
@holthuizenoemoet591 5 жыл бұрын
simply amazing , your explications are fantastic !
@ratabahmehras4847
@ratabahmehras4847 5 жыл бұрын
Wow!! You simply save my day.. ♥
@titofrezer6201
@titofrezer6201 4 жыл бұрын
What an explanation !!!! sir thank you very much
@ZiadddTV
@ZiadddTV 5 жыл бұрын
best explanation ever , thanks
@Eltopshottah
@Eltopshottah 4 жыл бұрын
I love this guy
@cynthiaayers7696
@cynthiaayers7696 Жыл бұрын
Einstein's theory. The manifestation of a polymorphic form. From Ram to R.O.M. A coding system of thermodynamics, in a unified theory of the forms. Meaning: O. Energy, to a harmonically balanced regenerative wave form. The cause and effect of these forms. To self manifest, In a chain reaction. Example the demon core of Trinity's. Or music. Sound waves of scalability/size. 1/1/2023. AKA spark in the dark.
@nicksonmlelwa6583
@nicksonmlelwa6583 6 жыл бұрын
Wow it's so nice sir!!!
@sravanisiva8414
@sravanisiva8414 3 жыл бұрын
Extremely fantastic 😀 thank you very much 😃
@wing3789
@wing3789 5 жыл бұрын
beautifully explained. Thank you!
@Beofware
@Beofware 6 жыл бұрын
Thank you so much. You really helped me understand it.
@imyasharya
@imyasharya 3 жыл бұрын
1:35 It reminds me of the particle systems I used in Blender to create sprinkles for my donuts.
@ready2ree100
@ready2ree100 4 жыл бұрын
guys please help me i didn't understand the coding part which language he was explaining
@juniorroberts13
@juniorroberts13 6 жыл бұрын
Awesome. You're a great teacher. :)
@randomveda1631
@randomveda1631 6 жыл бұрын
yasss. Finally a FUN java lesson.
@Ali-mi9up
@Ali-mi9up 5 жыл бұрын
nicely explained. btw what playlist is this a part of?
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
It's part of this series. kzbin.infoplaylists?view=50&sort=dd&shelf_id=6
4.8: Applying forces to a Particle System - The Nature of Code
8:15
The Coding Train
Рет қаралды 21 М.
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 896 М.
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 4,3 МЛН
Now it’s my turn ! 😂🥹 @danilisboom  #tiktok #elsarca
00:20
Elsa Arca
Рет қаралды 12 МЛН
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 14 МЛН
4.2: ArrayLists in Processing - The Nature of Code
13:51
The Coding Train
Рет қаралды 76 М.
The Only Time You Should Use Polymorphism
13:55
Christopher Okhravi
Рет қаралды 91 М.
1.5: Acceleration - The Nature of Code
14:20
The Coding Train
Рет қаралды 62 М.
Object Oriented Programming - The Four Pillars of OOP
11:23
Keep On Coding
Рет қаралды 332 М.
Intro to Object Oriented Programming - Crash Course
30:18
freeCodeCamp.org
Рет қаралды 946 М.
6.1: Autonomous Agents and Steering - The Nature of Code
14:29
The Coding Train
Рет қаралды 74 М.
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 898 М.
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 118 М.
When is Polymorphism Actually Useful?
9:44
Keep On Coding
Рет қаралды 5 М.