Package edu.nwmissouri.animalList
Class Squirrel
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Squirrel
Squireel class (derived from subclass of superclass Animal)
- Author:
 - Nithin Reddy Kumbham
 
- 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidage()Method which defines age of animalvoidvoidgender()Method which defines gender of animalvoidheight()Method which defines height of animaldoubleheightweight(double height, double weight) A method which returns height and weight of an animal combined in doublevoidMethod which defines whether animal is disabled or notvoidmove()Method which defines movement of animalvoidsleep()Method which defines sleep duration of animalvoidspeak()Method which defines sound of animalvoidtypeofAnimal(String name) Method which defines type of animal with namevoidweight()Method which defines weight of animal 
- 
Constructor Details
- 
Squirrel
Aardvark constructor- Parameters:
 name1- - name of the Squirrel
 
 - 
 - 
Method Details
- 
typeofAnimal
Method which defines type of animal with name- Parameters:
 name-
 - 
age
public void age()Method which defines age of animal - 
height
public void height()Method which defines height of animal - 
weight
public void weight()Method which defines weight of animal - 
heightweight
public double heightweight(double height, double weight) A method which returns height and weight of an animal combined in double- Parameters:
 height- of animalweight- of animal- Returns:
 - height and weight of animal
 
 - 
isDisabled
public void isDisabled()Method which defines whether animal is disabled or not - 
speak
public void speak()Method which defines sound of animal - 
move
public void move()Method which defines movement of animal - 
sleep
public void sleep()Method which defines sleep duration of animal - 
gender
public void gender()Method which defines gender of animal - 
functionMultiply
public void functionMultiply() 
 -