Get "Zero to Hero Dev" - a FREE roadmap for your future development career. CLICK HERE: iamdev.net/hero --------------------------- Things can change in programming - hence polymorphism!
Пікірлер: 70
@xephyr23713 жыл бұрын
THE ONLY ONE WHO IS CLEAR ENOUGH FOR MY GENIUS MONKEY BRAIN - THANK YOU
@50subsfornezukovids43 жыл бұрын
yes.
@xephyr23713 жыл бұрын
@@50subsfornezukovids4 You currently have over 50 subs yet no nezuko vids. WHY YOU TROLLLLLLLLLL MEEEEEEEEE
@LOLcheeseORZ3 жыл бұрын
Ikr lmao
@TVIDS1233 жыл бұрын
Would be good to go into the other types of polymorphism, not just overloading
@anushac34924 жыл бұрын
Concept clearly understood.
@his-worddevotionals5404 жыл бұрын
that is so clear! Clearer than clear!
@bjamesm5 жыл бұрын
Thank you for the explanation!
@annmarryp.k.128316 күн бұрын
Such a nice series - all of it, just top. Explanation, duration, your voice is so smooth. Just amazing, thank you
@JSamuel08 Жыл бұрын
Thank you very much. I was having trouble with it until now.
@kittyissu6 жыл бұрын
So, overloading functions is a type of polymorphism ?
@lilswetambz5 жыл бұрын
making a copy of another method but with different arguments is NOT polymorphism!
@Retrosenescent4 жыл бұрын
Yes. Polymorphism has two components: method overloading and method overriding.
@JamesJSwiftJay3 жыл бұрын
Extremely simplistic and helpful , thank you kind sir.
@growingisgood5 жыл бұрын
You are the man !!
@ViceKnIghtTA Жыл бұрын
THANK YOU THANK YOU THANK YOU OMFG...WHY CANT EVERYONE EXPLAIN IT LIKE YOU!!!! SERIOUSLY I DOWN VOTED AND CRITIQUED EVERY SINGLE VIDEO ON KZfaq ABOUT THIS UNTIL I CAME TO YOURS THANK YOU 👍🙏🙏🙏🙏
@onlyme112Ай бұрын
I've had the same experience with other explanations. This video really hits home!
@oy7star3 жыл бұрын
After watching this I clearly understand that concept.
@21pating6 жыл бұрын
hey man keep it up! your doing so good
@lasagna3289Ай бұрын
Thank you! This really helped
@hafsabatool88953 жыл бұрын
I never wanted the video to end before for the first time I was getting something about polymorphism
@HaileeMiu5 жыл бұрын
Thanks a bunch. This is the perfect overview that I have been looking for! Now I get it at a high level.
@IAmDevtube5 жыл бұрын
Good! I had a look at your website (sorry, developer curiosity!) - good luck with the career change!
@HaileeMiu5 жыл бұрын
@@IAmDevtube Thanks! I actually start a new position as an engineer on Monday! They use node, Golang, and python. I only knew Node, so I am working on Go now. Transition to OOP is a jump.
@IAmDevtube5 жыл бұрын
@@HaileeMiu that it is! But once you 'get' OOP you see the world in a new way! Good luck!
@LOLcheeseORZ3 жыл бұрын
I wish I could give you 1000 likes lol. You made this so easy to understand!
@kosherjellyfish4 жыл бұрын
Nicely summarized.
@shailypandey23533 жыл бұрын
Very clear good work 👍🏻👍🏻
@Olavotemrazaodenovo4 жыл бұрын
congratulation from Brazil.
@MtnOrange2 ай бұрын
simple and effective explanation. Thank you.
@madhavanand7566 жыл бұрын
Nice for Beginners
@Marco-vp8wl2 жыл бұрын
Thank you, very helpful ^^
@pratyushshukla65552 жыл бұрын
Very helpful!
@NewGroundBreaker3 жыл бұрын
I was already using it and didn't know what it meant, exactly. Tks for the video!
@viktorvanchov30933 жыл бұрын
same
@bambino133t54 ай бұрын
I didnt even know I was already doing polymorphism
@edwinrenninger724 Жыл бұрын
Brilliant
@alinapodryhun18196 жыл бұрын
thank you! have my java class today. You give an excellent overview
@IAmDevtube6 жыл бұрын
+Alina Podryhun good luck!
@illmatic335 жыл бұрын
Would it be safe to say this is like a case statement, logic never changes but argument is whatever you want it to be?
@Delstar5 жыл бұрын
Yes. But generally it is better because it's not as messy with many different arguments. (Having 50 unique arguments in a case system would look awful)
@illmatic335 жыл бұрын
@@Delstar but how is this different then? How argument in this example (add 47 more animals) different from a case statement? You are passing a param. "Case animals"... When dogs...execute bark, when cat... Execute meow... And so on. Maybe I am misunderstanding something here...
@Delstar5 жыл бұрын
@@illmatic33 It mostly looks better and is easier to modify.
@illmatic335 жыл бұрын
@@Delstar I went and did some further research and saw the difference. Just taking out the case/if statement and placing those code in a separate method that gets call. That's what I got from it
@digitalchetan56254 жыл бұрын
Polymorphism occurs at run time or debug time or compile time?
@ramyar39214 жыл бұрын
Runtime
@awesomedavid201211 ай бұрын
It depends. Functional overloading in a statically styped language occurs at compile time when the compiler detects the type and chooses which function to call. When it comes to something like: interface A Type B implements A Type C implements A obj: A = B() A.method That happens at runtime because the compiler has no idea which type (B or C)'s method is going to actually be called. It just knows they both have that method so the code will be valid at runtime. But the choosing of the method happens at runtime.
@drakulea43015 ай бұрын
ok but you're missing the essence and you're kinda mixing stuff with inheritance here.. The basis of polym is not that you have multiple copies of your function in each type that inherits form Animal( that's inheritance), but rather that you have a method pet(Animal a) in another class, and any object of a type that inherits from class Animal will be suitable for that method. ( they key point here is that you can only have the class Animal and pet method and classes that are still not existent can comply to the pet's method signature by inheriting from Animal). Polymorphism can be achieved through interfaces, abstract classes, or regular (concrete) classes, but the essence remains the same: treating objects of different types in a uniform way. In the broader context, polymorphism is about writing code that can work with objects of different types in a unified manner. Whether you achieve this through interfaces, abstract classes, or regular classes with inheritance, the goal is to create more flexible and reusable code that can accommodate various types of objects without knowing their specific implementations.
@jossieyan74802 жыл бұрын
NICE I'VE GOT LIKE ONE BRAINM CELL AND MY ASSIGNMENT IS DUE IN 8 HOURS AND I AM ON SO MUCH CAAAFINE
@deepakpradhan51097 жыл бұрын
jordar
@illegalrepost2135 жыл бұрын
So, Polymorphism is basically a if or else if statement.
@sifiso50555 жыл бұрын
But better as it eliminates the use of many if statements
@Bm23CC5 жыл бұрын
case statement.
@illmatic335 жыл бұрын
Who is Dev? Who is Devvvv? You are! You Are! Otta boy....
@interesting72154 жыл бұрын
Went straight to The Coding Train's take on polymorphism and noticed they both had the same amount of dislikes.
@brianlaudrupchannel3 жыл бұрын
Not a clear explanation tbh
@AccidentallyAlive3 ай бұрын
Why?😊
@olagarto1917 Жыл бұрын
how multi code whit same name is iqual to single code whit multy form? my name jon and my neighbor is jon, and we aint a singular polymorphyc being...?
@bombrman1994 Жыл бұрын
Similar to overloading?
@Trollox10 ай бұрын
So basically it's like overloading a function yeah?
@user-in9lt5ve3t4 ай бұрын
Please talk faster. I watched your video in 2x speed and it was still way to slow. Great explanation tho.
@tracyrmeade2 ай бұрын
He was probably talking slowly to help slow people that cannot spell the word ‘though’, or are just too lazy to type the entire word
@patrickl12702 жыл бұрын
Woof, Meow and SHAZOOOO
@nononnomonohjghdgdshrsrhsjgd Жыл бұрын
example
@bigyandevkota56374 жыл бұрын
Overriding the inherited methods!!
@Alpacka3602 жыл бұрын
So basically Polymorphism is just Overloading???
@drakulea43015 ай бұрын
nope 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.
@Objectivityiskey2 жыл бұрын
Nice, but arbitrary. Thought I didn't anticipate it this way.