ungleich-learning-circle/balazs/python-the-hard-way/ex40/classtest.py

14 lines
208 B
Python

class MyStuff(object):
def __init__(self):
self.tangerine = "ya"
def apple(self):
print("printing apples")
thing = MyStuff()
thing.apple()
print(thing.tangerine)
MyStuff().apple()