Multi-Level Inheritance In Python
In this, a derived classes is created from other derived class.
A sub sub class is related to its parent and parent’s parent class
Syntax :
keyword class class_name1:
---------- statement 1
keyword class class_name2(class_name1):
---------- statement 2
keyword class class_name (class_name2):
---------- statement 3
Example :
hi
Comments
Post a Comment