Does python support multiple inheritance?
Yes, Python supports multiple inheritance.
A class
can be derived from more than one base class
, this is called multiple inheritance. The features of all the base classes are inherited into the derived class (like in C++).
Syntax:
Class Base1:
Body of the class
Class Base2:
Body of the class
Class Derived(Base1, Base2):
Body of the class