Türetme örneği 1

This commit is contained in:
Mert Gör 🇹🇷 2023-07-01 17:06:00 +03:00
parent fd8dfc3691
commit 499a30d947
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

15
python-temel/turetme.py Normal file
View File

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