7 lines
187 B
Python
7 lines
187 B
Python
class Sample:
|
||
def foo(): # bu nasıl metot?
|
||
print('foo')
|
||
|
||
Sample.foo() # geçerli
|
||
s = Sample()
|
||
s.foo() # error!
|