diff --git a/python-temel/init.super.py b/python-temel/init.super.py new file mode 100644 index 0000000..1d08dbc --- /dev/null +++ b/python-temel/init.super.py @@ -0,0 +1,21 @@ +class A: + def __init__(self): + print('A.__init__') + +class B(A): + def __init__(self): + super().__init__() + print('B.__init__') + +class C(A): + def __init__(self): + super().__init__() + print('C.__init__') + +class D(B, C): + def __init__(self): + super().__init__() + print('D.__init__') + +print(D.__mro__) +d = D()