class Person:
wallet = 0 #
def __init__(self, myname,money=0): # constructor
self.name = myname
self.wallet=money
print('I\'m in Person Constructor: {}'.format(myname))
def say_hi(self):
print('Hello, my name is : ', self.name)
def say_bye(self):
print('Goodbye', Person.ID)
def take(self,amount):
self.wallet+=amount
def balance(self):
print('Wallet Balance:',self.wallet)
def MakeCry(self):
self.Cry()
class Kid(Person):
def __init__(self, myname, money=0):
print('I\'m in Kid Constructor: {}'.format(myname))
super().__init__(myname=myname, money=money)
def Cry(self):
print('Kid is crying')