I am trying to make this code work, but I am missing something.
class animal():
def __init__(self, weight):
self.weigth = weight
@classmethod
def print(self, weight):
self.printWeight(weight)
class human(animal):
@classmethod
def printWeight(self, weight):
print(self.weigth)
human.print(1)
which gives
AttributeError: type object 'human' has no attribute 'weigth'
any suggestions ?
Thanks !