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
Nesta página do site você pode assistir ao vídeo on-line Python Programming Tutorial - Multiple and Multilevel Inheritance duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Amulya's Academy 12 Fevereiro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 38,966 vezes e gostou 591 espectadores. Boa visualização!