From 2fd02739b9183500ca432ef105fc3e77a16a2d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Thu, 13 Jul 2023 14:40:30 +0300 Subject: [PATCH] init example without super --- python-temel/init.example.without.super.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 python-temel/init.example.without.super.py diff --git a/python-temel/init.example.without.super.py b/python-temel/init.example.without.super.py new file mode 100644 index 0000000..97eb164 --- /dev/null +++ b/python-temel/init.example.without.super.py @@ -0,0 +1,15 @@ +class A: + def __init__(self): + print('A.__init__') + +class B: + def __init__(self): + print('B.__init__') + +class C(A, B): + def __init__(self): + A.__init__(self) + B.__init__(self) + print('C.__init__') + +c = C()