Quote:
...
def setBal(self,bal):
def getOwnerName(self):
return self.__ownerName
Indentation is everything in Python. Your
getOwnerName
function is nested inside your
setBal
function. You need to fix that.
...
def setBal(self,bal):
self.__money=bal
def getOwnerName(self):
return self.__ownerName