Exemple #1
0
 def __init__(self):
     #constructor function
     Animal.__init__(self)
     HTML.__init__(self)
     self.title = "The Rabbit"
     self.animal = "Belgian Hare Rabbit"
     self._phylum = "Chordata"
     self._class_ = "Mammalia"
     self._order = "Lagomorpha"
     self._family = "Leporidae"
     self._genus = "Sylvilagus"
     self._url = "images/Rabbit.jpg"
     self._avg_lifespan = "Ten years"
     self._habitat = "Woodlands, Prairies, Deserts."
     self._geo_location = "North, South America, Asia, Europe, Africa, Australia"
     self.sound = "Weening"
     self._body_id = "rabbit"
Exemple #2
0
 def __init__(self):
     #constructor function
     Animal.__init__(self)
     HTML.__init__(self)
     self.title = "The Grey Wolf"
     self.animal = "GREY WOLF"
     self._phylum = "Chordata"
     self._class_ = "Mammalia"
     self._order = "Carnivora"
     self._family = "Canidae"
     self._genus = "	Canis"
     self._url = "images/GreyWolf.jpg"
     self._avg_lifespan = "Five years "
     self._habitat = "Deserts, Woodlands and Arctic."
     self._geo_location = "North America and Europe, Australia"
     self.sound = "Howling"
     self._body_id = "wolf"
Exemple #3
0
    def __init__(self):
        #constructor functions
        Animal.__init__(self)
        HTML.__init__(self)

        self.__css_url = ""

        self.title = "The Fox"
        self.animal = "Red Fox"
        self._phylum = "Chordata"
        self._class_ = "Mammalia"
        self._order = "Carnivora"
        self.__family = "Canidae"
        self._genus = "Vulpes"
        self._url = "images/foximg.jpg"
        self._avg_lifespan = "Five years"
        self._habitat = "Woodlands"
        self._geo_location = "North America, Asia, Europe Australia"
        self.sound = "Howling"
        self._body_id = "fox"