class other 2

This commit is contained in:
Mert Gör 🇹🇷 2023-06-25 16:04:47 +03:00
parent 38285afbab
commit 7998912b9e
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

View File

@ -0,0 +1,6 @@
class Sample:
x = 10
s = Sample()
print(s.x) # 10
print(Sample.x) # 10