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