inherit init method code example
Example: inherit init method
class Parent:
def __init__(self,x):
self.x = x
class Child(Parent):
def __init__(self,x, y):
super().__init__(x)
self.y = y