diff --git a/python-temel/class.sample.other.4.py b/python-temel/class.sample.other.4.py new file mode 100644 index 0000000..ae5389e --- /dev/null +++ b/python-temel/class.sample.other.4.py @@ -0,0 +1,7 @@ +class Sample: + x = 10 + +s = Sample() +print(s.x) # buradaki x sınıf özniteliği olan x +s.x = 20 # artık biz örnek özniteliği olan x'e erişiyoruz +print(s.x) # buradaki x artık örnek özniteliği olan x