ungleich-learning-circle/balazs/python-the-hard-way/ex40/classtest.py
2020-06-10 16:57:46 +02:00

13 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()