Beispiel #1
0
 def __init__(self, name, age):
     Animals.__init__(self, name, age, race)
     self.race = 'Chien'
     self.name = name
     self.age = age
     self.live = True
     self.weight = 20
     self.eat = 50
     self.drink = 50
     self.sleep = 50
Beispiel #2
0
 def __init__(self, name, age):
     Animals.__init__(self, name, age)
     self.race = 'Fox'
     self.rabbit = 0