So here is some example code
class hi(object)
def __init__(self):
self.answer = 'hi'
def change(self):
self.answer ='bye'
print self.answer
def printer(self):
print self.answer
class goodbye(object):
def bye(self):
hi().change()
goodbye().bye()
hi().printer()
When i run this code i output
'bye'
'hi'
I want it to output
'bye'
'bye'
Is there a way to do this while still initializing self.answer to hi or will this cause it to always re-initialize to 'hi' no matter what i do afterwards?