Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Parent:
    def __init__(self, a, b):
        self.a = a
        self.b = b


class Child(Parent):
    def __init__(self, c, d, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.c = c
        self.d = d

c = Child(1, 2, 3, 4)
print(c.a, c.b, c.c, c.d)