def __init__(self, age, height, color, xpos, ypos):
def __init__(self, age, height, color, xpos, ypos):
Animal.__init__(self, age, height, color, xpos, ypos)
def run(self, xdistance, ydistance, time):
self.xposition += xdistance
self.yposition += ydistance
total_distance = math.sqrt((xdistance + xdistance) * (ydistance + ydistance))
self.velocity = total_distance/time
def __init__(self, age, height, color, xpos, ypos):
Animal.__init__(self, age, height, color, xpos, ypos)
if __name__ == '__main__':
danbi = Horse(5, 160, 'brown', 0, 0)
choco = Dog(10, 100, 'black', 50, 30)