inherit init method

Solutions on MaxInterview for inherit init method by the best coders in the world

showing results for - "inherit init method"
Jana
25 Oct 2018
1class Parent:
2        def __init__(self,x):
3                self.x = x
4
5class Child(Parent):
6        def __init__(self,x, y):
7                super().__init__(x)
8                self.y = y
9
similar questions
queries leading to this page
inherit init method