Python Programming Tutorial - Multiple and Multilevel Inheritance

Veröffentlicht am: 12 Februar 2017
auf dem Kanal: Amulya's Academy
38,966
591

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


Auf dieser Seite können Sie das Online-Video Python Programming Tutorial - Multiple and Multilevel Inheritance mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Amulya's Academy 12 Februar 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 38,966 Mal angesehen und es wurde von 591 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!