python:python_misc:properties_in_python_classes
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
python:python_misc:properties_in_python_classes [2019/02/19 22:58] – created mithat | python:python_misc:properties_in_python_classes [2019/02/19 23:12] – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Good writeups: | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
<code python> | <code python> | ||
class ClickerCounter(): | class ClickerCounter(): | ||
Line 7: | Line 11: | ||
def click(self): | def click(self): | ||
""" | """ | ||
- | | + | |
- | | + | |
""" | """ | ||
self.count = self.count + 1 | self.count = self.count + 1 | ||
Line 25: | Line 28: | ||
@limit.setter | @limit.setter | ||
def limit(self, l): | def limit(self, l): | ||
- | """ | + | """ |
if l > 0: | if l > 0: | ||
self.__limit = l | self.__limit = l |
python/python_misc/properties_in_python_classes.txt · Last modified: 2019/06/21 23:16 by mithat