Multiple Inheritance example

This commit is contained in:
Mert Gör 🇹🇷 2023-07-02 14:59:19 +03:00
parent e78b5b9dea
commit 7280eead01
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

16
python-temel/multiple.py Normal file
View File

@ -0,0 +1,16 @@
class A:
def foo(self):
print('foo')
class B:
def bar(self):
print('bar')
class C(A, B):
def tar(self):
print('tar')
c = C()
c.foo()
c.bar()
c.tar()