[Solved] How can I use the info from the parent class in a child object? [closed]


that’s is because your eat function print to the stdout and does not return a string.
you need to change your eat function to be:

def eat(self):
    return "eats well"

1

solved How can I use the info from the parent class in a child object? [closed]