Class Squirrel

java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Squirrel

public class Squirrel extends Animal
Squireel class (derived from subclass of superclass Animal)
Author:
Nithin Reddy Kumbham
  • Field Summary

    Fields inherited from class edu.nwmissouri.animalList.Animal

    gender, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    Aardvark constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    age()
    Method which defines age of animal
    void
     
    void
    Method which defines gender of animal
    void
    Method which defines height of animal
    double
    heightweight(double height, double weight)
    A method which returns height and weight of an animal combined in double
    void
    Method which defines whether animal is disabled or not
    void
    Method which defines movement of animal
    void
    Method which defines sleep duration of animal
    void
    Method which defines sound of animal
    void
    Method which defines type of animal with name
    void
    Method which defines weight of animal

    Methods inherited from class edu.nwmissouri.animalList.Animal

    getGender, getName, setGender

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Squirrel

      public Squirrel(String name1)
      Aardvark constructor
      Parameters:
      name1 - - name of the Squirrel
  • Method Details

    • typeofAnimal

      public void typeofAnimal(String name)
      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 animal
      weight - 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
      Specified by:
      speak in class Animal
    • move

      public void move()
      Method which defines movement of animal
      Specified by:
      move in class 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()