Türetme örneği 1
This commit is contained in:
parent
fd8dfc3691
commit
499a30d947
15
python-temel/turetme.py
Normal file
15
python-temel/turetme.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user