Python - Object Oriented Programming | Polymorphism

  Рет қаралды 71,912

Bitfumes

Bitfumes

5 жыл бұрын

Python Polymorphism and abstract classes
Python Object Oriented Programming, Python OOP concepts
What is Polymorphism in Python and how it is helpful
Full Python Beginner Playlist: goo.gl/UrcLw4
Become My Patron here goo.gl/NcvDQh
Angular Full 60 Minute Course goo.gl/TL2UFy
To Join Whatsapp, follow this link chat.whatsapp.com/3tZbpzGfrKb...
You can donate any amount via Paypal follow this link goo.gl/JhWsKC
Join Our Slack Community - goo.gl/pqCjZH
--You May Also Like --
Real-Time Chat Series - goo.gl/ri42FD
Git and Github series - goo.gl/BXyPxf
Blog with Admin panel Series - goo.gl/S5JGyt
Laravel Authentication Series: Multi Auth - goo.gl/TyCLlX
Vue Beginner To advanced Series - goo.gl/1bjdGg
Sublime Text Best Package Series - goo.gl/6phTPP
Laravel Ajax Todo Project - goo.gl/p2xTPW
Laravel 5.4 Full Beginner Playlist - goo.gl/zpKzhM
Laravel 5.3 Hindi Beginner Tutorials - goo.gl/Kb3ikd
==================FOLLOW ME ==================
Subscribe for New Releases!
Twitter - / bitfumes
Facebook - / bitfumes
Instagram - / bitfumes
(ask me questions!)
-- QUESTIONS? --
Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.
Email me support@bitfumes.com
Thanks for all your support!

Пікірлер: 40
@user-lw7mr7vm2b
@user-lw7mr7vm2b 3 жыл бұрын
Thanks, the concept is clear. It really helps !
@shaanlashkari8769
@shaanlashkari8769 2 жыл бұрын
This is a great video , i learnt polymorphim and i almost forgot it , this video gave me a quick revision of polymorphism , thank you Sarthak sir
@sebastiannachtigall1558
@sebastiannachtigall1558 2 жыл бұрын
Hey there, thanks for the video. I think it would be good to also point out what advantages polymorphism provides. In your example, it just adds more stuff to an already working piece of code ;-) But again, thank you for putting in the time to make this video. It is an easy-to-understand example of the "how" of polymorphism.
@sabbirahamed1894
@sabbirahamed1894 3 жыл бұрын
u r awesome. u make it so simple to use one example and it's works for Polymorphism, Inheritance , Abstraction.....He is expert, who can make critical things easy.
@03cristopher36
@03cristopher36 3 жыл бұрын
It's "Ni Hao" not "Yeehaw" haha
@53strat55
@53strat55 3 жыл бұрын
XD
@dushanindunil500
@dushanindunil500 3 жыл бұрын
LOL
@jackwindensky5606
@jackwindensky5606 2 жыл бұрын
LMAO
@kd013n
@kd013n 2 жыл бұрын
so, peter griffin was right :P
@priyamvadapriyam9415
@priyamvadapriyam9415 3 жыл бұрын
nice.. so easily expalined. thanks
@kaushikdr
@kaushikdr 3 жыл бұрын
Is polymorphism the idea that you can have different children from the same parent class? Also, I really like the way you created the "abstract class" in the parent class without having to use the ABC module - just raise an error when it is called!
@shrur3527
@shrur3527 2 жыл бұрын
Thanks a lot Good explanation
@barrydevine
@barrydevine Жыл бұрын
When you say "ee-haw" so cute. Great vid :)
@alejandronieto576
@alejandronieto576 Жыл бұрын
Thanks from Argentina!
@kathiresan.r658
@kathiresan.r658 Жыл бұрын
Bro super ah explain paninga...apdiya python hierarchical inheritance pathi video make panni poduga bro...
@Cssaarr
@Cssaarr 10 ай бұрын
Thanks for trying but seems that any explanation I can find is incomplete or confusing. In this case you showed (if I am not wrong): 1)"polymorphism as "duck typing": you have two classes with no hereditary relationship amongst them, which simply have methods with exactly the same name. 2) "polymorphism as overriding": you have one class that inherits annother class (in your example class French inherits class Language ....and as second example class Chinese also inherits class Language), and the "son" class (the class that inherits annother class) has a method with the same name as the parent class (method "say_hello" ) and so it happens that the program will execute the method as defined in the son class, because it is more specific, which means that you can use one same method name ("say_hello") and obtain two different results depending on which code it runs: the code of the parent class or the code of the son class. *According to books and videos about JAVA (don`t know if this is posible in Python too, but is useful to know) there is annother type of polymorphim called "method overloading" where you simply create two or more methods with the same name inside a class, but each of those methods has different types of parameters it can recieve, so depending on which type of parameters it recieves from the object that calls the method, one version of the method or annother different one will be executed.
@symbio626
@symbio626 4 ай бұрын
Python does not support method overloading. The syntax don't. Methods with the same name under a class will only retain the last method definition. But they have something to make up for it such as manipulating Default Parameters and Keyword Arguments and Factory Functions (basically instantiating objects via function)
@eejazishaq4332
@eejazishaq4332 5 жыл бұрын
This is an important topic that How to use Laravel with WordPress to customize our 3project and theme and develop own API. It'll help for all Laravel and wp developers. Plz make a video or article about it sorry for the comment about it in here! Thanks so much.
@Bitfumes
@Bitfumes 5 жыл бұрын
Sorry, bro I didn't use WordPress.
@gam3r.xen0n
@gam3r.xen0n 2 жыл бұрын
thanks
@opentech5972
@opentech5972 5 жыл бұрын
gj . could you explain this in laravel eloquent ?
@Bitfumes
@Bitfumes 5 жыл бұрын
Hmmmm you are right. I will try to explain this on laravel level also
@opentech5972
@opentech5972 5 жыл бұрын
@@Bitfumes tnx dude
@sarthaknimbalkar5868
@sarthaknimbalkar5868 Жыл бұрын
I was watching the video and all of a sudden my name appeared and I'm like waittt whattttttt😂😂
@Amirkolo
@Amirkolo 4 ай бұрын
thanks 🙂
@Bitfumes
@Bitfumes 4 ай бұрын
You're welcome!
@ShukyPersky
@ShukyPersky 5 ай бұрын
Thanks for the video.... sorry, this is NOT polymorphism, this is about typecasting. Polymorphism is a different mechanism and can't be implemented in Python due to Python's nature being dynamic-typed languge
@-_______________________.___
@-_______________________.___ Жыл бұрын
Why they give such simple topics such complex names?
@Import_success
@Import_success Жыл бұрын
It’s not really complex, poly means many and morphism means having different form. These are suffix/prefix taught in middle or highschool depending on where you went. ‘Polygon’ - having many sides ‘Polysyllabic’ - many syllables And more but yeah
@Import_success
@Import_success Жыл бұрын
Remember to always break down a word see if it has any familiar prefix or suffix, we tend to over look them and look at the word as whole a lot of times
@KaushikSarkar1978
@KaushikSarkar1978 5 жыл бұрын
This information is not correct completely.
@Bitfumes
@Bitfumes 5 жыл бұрын
hey, thanks for this, please tell me what else needs to implement
@nurkleblurker2482
@nurkleblurker2482 Жыл бұрын
Ni hao
@MioM_
@MioM_ 5 ай бұрын
Hard to understand
@LuisMorales-yx8di
@LuisMorales-yx8di 2 жыл бұрын
no sense
@serious6037
@serious6037 2 жыл бұрын
lol yeehaw xD
@Ahmed_3711
@Ahmed_3711 Жыл бұрын
Fita mu
@brawlboy1382
@brawlboy1382 6 ай бұрын
This don’t make any sense bruh 😂
@pavinkumarr9608
@pavinkumarr9608 2 жыл бұрын
Don't drag and brag while talking. Speak normally
@jvcss
@jvcss 2 жыл бұрын
to better understand the use of it class Language(): def speak(self): print("Universal answer HELLO") #raise NotImplementedError("Support but need to be implemented in child!") class Portuguese(Language): def speak(self): print("oi") class Spanish(Language): pass #WE NEED MORE DEVELOPERS RIGHT NOW def main(): print("started") newLang = Portuguese() newLang.speak() moreLang = Spanish() moreLang.speak() if __name__ == "__main__": main()
Python - Object Oriented Programming | Decorators
17:37
Bitfumes
Рет қаралды 2,6 М.
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,3 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,4 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,2 МЛН
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 63 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 78 МЛН
OOP in Python | Object Oriented Programming
1:45:19
Telusko
Рет қаралды 1,7 МЛН
Python Object Oriented Programming in 10 minutes 🐍
10:04
Bro Code
Рет қаралды 354 М.
Object Oriented Programming (OOP) in Python
46:37
Traversy Media
Рет қаралды 277 М.
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 859 М.
Learn Python Object Oriented Programming! 🚗
12:18
Bro Code
Рет қаралды 10 М.
OOP Class Inheritance and Private Class Members - Python for Beginners!
16:12
Python - Object Oriented Programming | Encapsulation
8:32
Bitfumes
Рет қаралды 20 М.
Python abstract classes 👻
7:45
Bro Code
Рет қаралды 73 М.
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,4 МЛН