Created
September 14, 2012 10:04
-
-
Save language-engineering/3721138 to your computer and use it in GitHub Desktop.
foo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tester(object): | |
def __init__(self): | |
self.n = 5 | |
def inc(self,x): | |
self.n+=x | |
def do_math(self): | |
print self.n * 3 + 5 | |
test = Tester() | |
test.inc(2) | |
test.do_math() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment