Hierarchical Inheritance In Python
In this, more than one derived class is created from a single class.
Syntax :
keyword class class_name1:
---------- statement 1
keyword class class_name2(class_name1):
---------- statement 2
keyword class class_name (class_name1):
---------- statement 3
Example :
hi
Comments
Post a Comment