예제 #1
0
 def __init__(self, name, species, food, chip_num):
     # No more super() when initializing multiple base classes
     Animal.__init__(self, name, species, food, chip_num)
     Swimming.__init__(self)
     Walking.__init__(self)
     # no more self.swimming = True
     ...
예제 #2
0
 def __init__(self, name, species, food, chip_num):
     Animal.__init__(
         self,
         name,
         species,
         food,
         chip_num,
     )
     Swimming.__init__(self)
     self.location = "Pond"
예제 #3
0
    def __init__(self, name, species, shift, food, chip_num):
        Animal.__init__(self, name, species, shift, food, chip_num)
        Swimming.__init__(self)
        Walking.__init__(self)
        
       
        

    # @property 
    # def chip_number(self):
    #     return self.__chip_number

    # @chip_number.setter
    # def chip_number(self, number):
        pass
예제 #4
0
 def __init__(self, name, species, food, shift, chip_number):
     Animal.__init__(self, name, species, food, chip_number)
     Swimming.__init__(self)
     Walking.__init__(self, shift)
예제 #5
0
 def __init__(self, name, species, food, chip_num):
     Animal.__init__(self, name, species, food, chip_num)
     Swimming.__init__(self)
예제 #6
0
 def __init__(self, name, species, shift, food, chip_num):
     Animal.__init__(self, name, species, food, chip_num)
     Swimming.__init__(self)
     Walking.__init__(self)
     self.date_added = date.today()
     self.shift = shift
예제 #7
0
 def __init__(self, name, species, food, chipnum):
     Critter.__init__(self, name, species, food, chipnum)
     Swimming.__init__(self)
예제 #8
0
 def __init__(self, name):
     Animal.__init__(self, name)
     Swimming.__init__(self)
예제 #9
0
 def __init__(self, name, species, food):
     Animal.__init__(self, name, species, food)
     Swimming.__init__(self)
     Walking.__init__(self)
 def __init__(self, name):
     Animal.__init__(self, name)
     Walking.__init__(self)
     Swimming.__init__(self)
     Digging.__init__(self)
예제 #11
0
 def __init__(self, name, species, shift, food, chip_num):
     Animal.__init__(self, name, species, food, chip_num)
     Walking.__init__(self)
     Swimming.__init__(self)
     Flying.__init__(self)
     self.shift = shift