This commit is contained in:
Mert Gör ☭ 2023-06-25 16:52:59 +03:00
parent 2f23e77508
commit 1a0db0282c
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
1 changed files with 12 additions and 0 deletions

12
python-temel/class.2.py Normal file
View File

@ -0,0 +1,12 @@
class Sample:
def foo(self):
print('foo')
def b(self):
print('bar')
Sample.bar = b
s = Sample()
s.foo()
s.bar()