In this Python programming video tutorial you will learn about multilevel and multiple inheritance in detail.
In multilevel inheritance you can inherit a derived class from another derived class.In this inheritance there will be a base class and derive class which is inherited from this base class and from the derive class we can inherit another class. for example Our father inherits features of the grandfather, further we inherit the properties/capabilities of our father. Indirectly we inherited the properties/capabilities of our grandfather.
Multiple inheritance on the other hand is a feature in which a class can inherit attributes and methods from more than one parent class. A class definition, where a child class SubClassName inherits from the parent classes BaseClass1 BaseClass2 BaseClass3 and so on looks like this:
class SubclassName(BaseClass1, BaseClass2, BaseClass3, ...):
pass
For more free tutorials on computer programming
/ amulsacademy
twitter.com/AmulsAcademy
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Programming Tutorial - Multiple and Multilevel Inheritance durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Amulya's Academy 12 février 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 38,966 fois et il a aimé 591 téléspectateurs. Bon visionnage!