and cls following example demonstrates static methodclass boxsides none def __init__(selflb)self length self breadth def display(self)print("length of box is:"self lengthprint("breadth of box is:"self breadth@staticmethod def init_sides( )sides print("sides of box ="sidesbox init_sides( box( , display(inheritance creating new class from existing class is known as inheritance the class from which features are inherited is known as base class and the class into which features are derived into is called derived class inheritance promotes reusability of code by reusing already existing classes inheritance is used to implement is- relationship between classes following hierarchy is an example representing inheritance between classessyntax for creating derived class is as followsclass derivedclass(baseclass)statement statement