Exemplo n.º 1
0
        //default constructor

        public Animals()
        {
            this.species_name = "";
            this.animalType   = animalTypes.unknown;
            //this.name = "";
            this.habitat     = 0;
            this.typeOfEater = 0;
            this.filmed      = false;
            this.whenActive  = 0;
        }
Exemplo n.º 2
0
        //other constructor where they've got to give me everything about each animal object

        public Animals(String species_name, animalTypes animalType, habitats habitat, Eaters typeOfEater, bool filmed, active whenActive)
        {
            this.species_name = species_name;
            this.animalType   = animalType;
            //this.name = name;
            this.habitat     = habitat;
            this.typeOfEater = typeOfEater;
            this.filmed      = filmed;
            this.whenActive  = whenActive;
        }
Exemplo n.º 3
0
 public animalTypes setAnimalType(animalTypes type)
 {
     this.animalType = type;
     return(this.animalType);
 }