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

Опубликовано: 24 Март 2021
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн Advanced Python #6 | Super method for Class __init__ and Method Resolution Order (MRO) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Makeesy AI 24 Март 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 343 раз и оно понравилось 8 зрителям. Приятного просмотра!