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