Package edu.nwmissouri.animalList
Class Griffin
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Griffin
The class Griffin, a subclass of Animal
- Author:
 - Alexander Dieringer
 
- 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic edu.nwmissouri.animalList.NumberParitycalculateSumParity(int num1, int num2) calculateSumParity() - Calculates the parity of a 2 number sumbooleangetIsExtinct() - Returns whether the animal is extinct or notgetLatinName() - Returns the animal's Latin namegetLocationFound() - Return the location the animal is foundintgetMovementSpeed() - Returns the max movement speed of the animalgetMyName() - Returns the animal's nameintgetSleepDuration() - Return how long the animal sleepsgetSpeciesName() - Returns the animal's speciesvoidmove()move() - Describes the general type of movement the animal Griffinvoidspeak()speak() - Presents the types of sounds made by the Griffin 
- 
Constructor Details
- 
Griffin
Griffin constructor Creates an instance of the Griffin class, requires a name- Parameters:
 name- The name we will be giving our new Griffin
 
 - 
 - 
Method Details
- 
speak
public void speak()speak() - Presents the types of sounds made by the Griffin - 
move
public void move()move() - Describes the general type of movement the animal Griffin - 
getMyName
getMyName() - Returns the animal's name- Returns:
 - The name of the animal as a String
 
 - 
getSpeciesName
getSpeciesName() - Returns the animal's species- Returns:
 - The animal's species as a String
 
 - 
getLatinName
getLatinName() - Returns the animal's Latin name- Returns:
 - The animal's Latin name as a String
 
 - 
getLocationFound
getLocationFound() - Return the location the animal is found- Returns:
 - The location of the animal as a String
 
 - 
getSleepDuration
public int getSleepDuration()getSleepDuration() - Return how long the animal sleeps- Returns:
 - The length the animal sleeps in hours
 
 - 
getMovementSpeed
public int getMovementSpeed()getMovementSpeed() - Returns the max movement speed of the animal- Returns:
 - How fast the animal can move in mph
 
 - 
getIsExtinct
public boolean getIsExtinct()getIsExtinct() - Returns whether the animal is extinct or not- Returns:
 - Returns true or false on whether the animal is extinct
 
 - 
calculateSumParity
public static edu.nwmissouri.animalList.NumberParity calculateSumParity(int num1, int num2) calculateSumParity() - Calculates the parity of a 2 number sum- Parameters:
 num1- The first integer to add upnum2- The second integer to add up- Returns:
 - The NumberParity enumerator holding ODD or EVEN
 
 
 -