Python Multilevel Inheritance
Multilevel inheritance is also possible in Python programming language. In multilevel inheritance, features of the base class and the derived class is inherited into the new derived class.

Multilevel Imheritance
Syntax :
class Base:

class Derived1(Base):

class Derived2(Derived1):
Here, Derived1 is derived from Base, and Derived2 is derived from Derived1.
Multilevel Inheritance Example :
>>> class Website:
	def first(self):
		print ('')

>>> class Second(Website):
	def sec(self):
		print ('')

>>> class Third(Second):
	def final(self):
		print ('')

>>> a=Third()
>>> a.first()
>>> a.sec()

We see you’re using an ad blocker.

Our website is made possible by displaying ads to our visitors.

Please help us continue to provide you with free. So please disabling your ad blocker.