User Tools

Site Tools


python:about_python:about_python_iii

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
python:about_python:about_python_iii [2014/02/28 22:43] mithatpython:about_python:about_python_iii [2017/12/06 01:57] (current) mithat
Line 161: Line 161:
 class ClickerCounter(): class ClickerCounter():
     def __init__(self):  # constructor     def __init__(self):  # constructor
-        count = 0+        self.count = 0
          
     def get_count(self):  # accessor for count     def get_count(self):  # accessor for count
Line 179: Line 179:
 class ClickerCounter(): class ClickerCounter():
     def __init__(self):  # constructor     def __init__(self):  # constructor
-        count = 0+        self.count = 0
          
     def set_count(self, count):  # mutator for count     def set_count(self, count):  # mutator for count
python/about_python/about_python_iii.txt · Last modified: 2017/12/06 01:57 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki