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
Sur cette page du site, vous pouvez voir la vidéo en ligne Advanced Python #6 | Super method for Class __init__ and Method Resolution Order (MRO) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Makeesy AI 24 mars 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 343 fois et il a aimé 8 téléspectateurs. Bon visionnage!