I have this class :
class DieKlass:
#My attempt using __init__
def __init__(self):
aMethod()
def hello(self):
print ("Hello !")
#Some other file
Def aMethod():
print ("me !")
and I want it to result as this on "ob" being instance of DieKlass :
ob.hello()
result in :
me !
Hello !
How to call aMethod() on every method call of DieKlass object without calling explicitly aMethod in DieKlass methods bodies ?