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