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
In questa pagina del sito puoi guardare il video online Python Programming Tutorial - Multiple and Multilevel Inheritance della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Amulya's Academy 12 febbraio 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 38,966 volte e gli è piaciuto 591 spettatori. Buona visione!