Python: The super() Function

preview_player
Показать описание
In this video, we'll learn why the "super()" function is important in Python. You'll also learn when and how to use it in your code.

⭕ Chapters
0:00 - Introduction
8:40 - Invoking the super() method

⭕ About me

⭕ My complete online training courses:

⭕ Check out my book:

Developing Business Applications for the Web: With HTML, CSS, JSP, PHP, ASP.NET, and JavaScript is available on Amazon and MC Press.
Рекомендации по теме
Комментарии
Автор

This is the best video on using super I have battled to understand it thank you sir

foton
Автор

This gives a deeper understanding about super() than most tutorials out there. Thanks!

basebeling
Автор

I am really impressed with your teaching method. You cleared all my doubts that I was having by taking all the scenarios that can take place. Good luck for future

sehajkapoor
Автор

I just started learning python and this gave me a much deeper understanding of inheritance and how super() works. Thanks Christian!

TechEndeavor
Автор

Thank you, man. It was really confusing but you made it very simple.

zubairzafar
Автор

Understood the concept in one go, Thank you

zohaibshamshad
Автор

Nice explanation...what i was looking got it from here. Thanks a lot.

dipan
Автор

super Video, I watched 2 others before but now it finally makes sense thanks : )
but somehow i missed the simple sentence:
" by using super() like for example super().__init__ you are just executing the __init__ function from the parent class "
in the explanation (because it´s easy to remember & fast to understand with it)

manuelkarner
Автор

Hi Christian, what a nice explanation!
I'm still learning so, sorry if my below question doesn't make any sense.


If I had another sub class, for example class C, could that inherit from the A and B classes using the super() function?



I was thinking, maybe we could pass as an argument the class that we want to inherit from, is that possible?

AcademiaPython
Автор

Genuis explanation for why we see the behaviour we see.

AhmedIsam
Автор

Nice but how would i use super with in ktinter

fentonmsu