What is polymorphism in programming

  Рет қаралды 144,089

iAmDev

iAmDev

7 жыл бұрын

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
@xephyr2371
@xephyr2371 3 жыл бұрын
THE ONLY ONE WHO IS CLEAR ENOUGH FOR MY GENIUS MONKEY BRAIN - THANK YOU
@50subsfornezukovids4
@50subsfornezukovids4 3 жыл бұрын
yes.
@xephyr2371
@xephyr2371 3 жыл бұрын
@@50subsfornezukovids4 You currently have over 50 subs yet no nezuko vids. WHY YOU TROLLLLLLLLLL MEEEEEEEEE
@LOLcheeseORZ
@LOLcheeseORZ 3 жыл бұрын
Ikr lmao
@TVIDS123
@TVIDS123 3 жыл бұрын
Would be good to go into the other types of polymorphism, not just overloading
@anushac3492
@anushac3492 4 жыл бұрын
Concept clearly understood.
@his-worddevotionals540
@his-worddevotionals540 4 жыл бұрын
that is so clear! Clearer than clear!
@bjamesm
@bjamesm 5 жыл бұрын
Thank you for the explanation!
@annmarryp.k.1283
@annmarryp.k.1283 16 күн бұрын
Such a nice series - all of it, just top. Explanation, duration, your voice is so smooth. Just amazing, thank you
@JSamuel08
@JSamuel08 Жыл бұрын
Thank you very much. I was having trouble with it until now.
@kittyissu
@kittyissu 6 жыл бұрын
So, overloading functions is a type of polymorphism ?
@lilswetambz
@lilswetambz 5 жыл бұрын
making a copy of another method but with different arguments is NOT polymorphism!
@Retrosenescent
@Retrosenescent 4 жыл бұрын
Yes. Polymorphism has two components: method overloading and method overriding.
@JamesJSwiftJay
@JamesJSwiftJay 3 жыл бұрын
Extremely simplistic and helpful , thank you kind sir.
@growingisgood
@growingisgood 5 жыл бұрын
You are the man !!
@ViceKnIghtTA
@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
@onlyme112 Ай бұрын
I've had the same experience with other explanations. This video really hits home!
@oy7star
@oy7star 3 жыл бұрын
After watching this I clearly understand that concept.
@21pating
@21pating 6 жыл бұрын
hey man keep it up! your doing so good
@lasagna3289
@lasagna3289 Ай бұрын
Thank you! This really helped
@hafsabatool8895
@hafsabatool8895 3 жыл бұрын
I never wanted the video to end before for the first time I was getting something about polymorphism
@HaileeMiu
@HaileeMiu 5 жыл бұрын
Thanks a bunch. This is the perfect overview that I have been looking for! Now I get it at a high level.
@IAmDevtube
@IAmDevtube 5 жыл бұрын
Good! I had a look at your website (sorry, developer curiosity!) - good luck with the career change!
@HaileeMiu
@HaileeMiu 5 жыл бұрын
@@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.
@IAmDevtube
@IAmDevtube 5 жыл бұрын
@@HaileeMiu that it is! But once you 'get' OOP you see the world in a new way! Good luck!
@LOLcheeseORZ
@LOLcheeseORZ 3 жыл бұрын
I wish I could give you 1000 likes lol. You made this so easy to understand!
@kosherjellyfish
@kosherjellyfish 4 жыл бұрын
Nicely summarized.
@shailypandey2353
@shailypandey2353 3 жыл бұрын
Very clear good work 👍🏻👍🏻
@Olavotemrazaodenovo
@Olavotemrazaodenovo 4 жыл бұрын
congratulation from Brazil.
@MtnOrange
@MtnOrange 2 ай бұрын
simple and effective explanation. Thank you.
@madhavanand756
@madhavanand756 6 жыл бұрын
Nice for Beginners
@Marco-vp8wl
@Marco-vp8wl 2 жыл бұрын
Thank you, very helpful ^^
@pratyushshukla6555
@pratyushshukla6555 2 жыл бұрын
Very helpful!
@NewGroundBreaker
@NewGroundBreaker 3 жыл бұрын
I was already using it and didn't know what it meant, exactly. Tks for the video!
@viktorvanchov3093
@viktorvanchov3093 3 жыл бұрын
same
@bambino133t5
@bambino133t5 4 ай бұрын
I didnt even know I was already doing polymorphism
@edwinrenninger724
@edwinrenninger724 Жыл бұрын
Brilliant
@alinapodryhun1819
@alinapodryhun1819 6 жыл бұрын
thank you! have my java class today. You give an excellent overview
@IAmDevtube
@IAmDevtube 6 жыл бұрын
+Alina Podryhun good luck!
@illmatic33
@illmatic33 5 жыл бұрын
Would it be safe to say this is like a case statement, logic never changes but argument is whatever you want it to be?
@Delstar
@Delstar 5 жыл бұрын
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)
@illmatic33
@illmatic33 5 жыл бұрын
@@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...
@Delstar
@Delstar 5 жыл бұрын
@@illmatic33 It mostly looks better and is easier to modify.
@illmatic33
@illmatic33 5 жыл бұрын
@@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
@digitalchetan5625
@digitalchetan5625 4 жыл бұрын
Polymorphism occurs at run time or debug time or compile time?
@ramyar3921
@ramyar3921 4 жыл бұрын
Runtime
@awesomedavid2012
@awesomedavid2012 11 ай бұрын
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.
@drakulea4301
@drakulea4301 5 ай бұрын
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.
@jossieyan7480
@jossieyan7480 2 жыл бұрын
NICE I'VE GOT LIKE ONE BRAINM CELL AND MY ASSIGNMENT IS DUE IN 8 HOURS AND I AM ON SO MUCH CAAAFINE
@deepakpradhan5109
@deepakpradhan5109 7 жыл бұрын
jordar
@illegalrepost213
@illegalrepost213 5 жыл бұрын
So, Polymorphism is basically a if or else if statement.
@sifiso5055
@sifiso5055 5 жыл бұрын
But better as it eliminates the use of many if statements
@Bm23CC
@Bm23CC 5 жыл бұрын
case statement.
@illmatic33
@illmatic33 5 жыл бұрын
Who is Dev? Who is Devvvv? You are! You Are! Otta boy....
@interesting7215
@interesting7215 4 жыл бұрын
Went straight to The Coding Train's take on polymorphism and noticed they both had the same amount of dislikes.
@brianlaudrupchannel
@brianlaudrupchannel 3 жыл бұрын
Not a clear explanation tbh
@AccidentallyAlive
@AccidentallyAlive 3 ай бұрын
Why?😊
@olagarto1917
@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
@bombrman1994 Жыл бұрын
Similar to overloading?
@Trollox
@Trollox 10 ай бұрын
So basically it's like overloading a function yeah?
@user-in9lt5ve3t
@user-in9lt5ve3t 4 ай бұрын
Please talk faster. I watched your video in 2x speed and it was still way to slow. Great explanation tho.
@tracyrmeade
@tracyrmeade 2 ай бұрын
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
@patrickl1270
@patrickl1270 2 жыл бұрын
Woof, Meow and SHAZOOOO
@nononnomonohjghdgdshrsrhsjgd
@nononnomonohjghdgdshrsrhsjgd Жыл бұрын
example
@bigyandevkota5637
@bigyandevkota5637 4 жыл бұрын
Overriding the inherited methods!!
@Alpacka360
@Alpacka360 2 жыл бұрын
So basically Polymorphism is just Overloading???
@drakulea4301
@drakulea4301 5 ай бұрын
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.
@Objectivityiskey
@Objectivityiskey 2 жыл бұрын
Nice, but arbitrary. Thought I didn't anticipate it this way.
@RobertPodosek
@RobertPodosek Жыл бұрын
Terrible explanation
@IAmDevtube
@IAmDevtube Жыл бұрын
cool story bro
What is abstraction in programming?
3:24
iAmDev
Рет қаралды 98 М.
Java Polymorphism Fully Explained In 7 Minutes
7:16
Coding with John
Рет қаралды 298 М.
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 118 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 18 МЛН
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 6 МЛН
4.7: Introduction to Polymorphism - The Nature of Code
8:46
The Coding Train
Рет қаралды 180 М.
why does inheritance suck?
8:05
Low Level Learning
Рет қаралды 204 М.
C# polymorphism 🎭
5:11
Bro Code
Рет қаралды 74 М.
Object-oriented Programming in 7 minutes | Mosh
7:34
Programming with Mosh
Рет қаралды 3,8 МЛН
What is a Class vs What is an Object in Programming?
4:43
C++ OOP - What is inheritance in programming?
16:32
CodeBeauty
Рет қаралды 137 М.
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 864 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
Java OOP in 10 Minutes (Java Object Oriented Programming) #95
10:05
What is inheritance in programming?
4:28
iAmDev
Рет қаралды 38 М.