Advanced Python #6 | Super method for Class __init__ and Method Resolution Order (MRO)

Published: 24 March 2021
on channel: Makeesy AI
343
8

Advanced Python #6 | Super method for Class _init_ and Method Resolution Order (MRO)

In this tutorial, we'll learn why to use super method instead of class-name based initialization specifically to avoid the following cases-
1. In case of changes in _init_ method of parent class the subclass _init_ needs to change
2. As a new class is added you need to add a new CLASS_NAME.__init__() for that

The code used in this tutorial is available here-
https://github.com/makeesyai/makeesy-...


#python #advanced #super #inheritance


On this page of the site you can watch the video online Advanced Python #6 | Super method for Class __init__ and Method Resolution Order (MRO) with a duration of hours minute second in good quality, which was uploaded by the user Makeesy AI 24 March 2021, share the link with friends and acquaintances, this video has already been watched 343 times on youtube and it was liked by 8 viewers. Enjoy your viewing!