|
|
|
@ -186,9 +186,9 @@ def otobrazh(obj):
|
|
|
|
>>> class Class4:
|
|
|
|
>>> class Class4:
|
|
|
|
... def __init__ (self, znach):
|
|
|
|
... def __init__ (self, znach):
|
|
|
|
... self.__prm = znach
|
|
|
|
... self.__prm = znach
|
|
|
|
... def chten(self):
|
|
|
|
... def chten(self): # getter
|
|
|
|
... return self.__prm
|
|
|
|
... return self.__prm
|
|
|
|
... def zapis(self, znch):
|
|
|
|
... def zapis(self, znch): # setter
|
|
|
|
... self.__prm = znch
|
|
|
|
... self.__prm = znch
|
|
|
|
... def stiran(self):
|
|
|
|
... def stiran(self):
|
|
|
|
... del self.__prm
|
|
|
|
... del self.__prm
|
|
|
|
|