Class Aardvark

java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Aardvark
All Implemented Interfaces:
Runnable

public class Aardvark extends Animal implements Runnable
Aardvark class (derived subclass of the superclass Animal)
Author:
Dr. Case
  • Constructor Details

    • Aardvark

      public Aardvark(String name)
      Aardvark constructor
      Parameters:
      name - - the name of this aardvark
  • Method Details

    • isIsAlive

      public boolean isIsAlive()
    • setIsAlive

      public void setIsAlive(boolean isAlive)
    • getAge

      public int getAge()
    • setAge

      public void setAge(int age)
    • getWeight_pounds

      public double getWeight_pounds()
    • setWeight_pounds

      public void setWeight_pounds(double weight_pounds)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • speak

      public void speak()
      Description copied from class: Animal
      abstract speak() - has no implementation
      Specified by:
      speak in class Animal
    • move

      public void move()
      Description copied from class: Animal
      abstract move() - has no implementation
      Specified by:
      move in class Animal
    • profess

      public void profess()
    • getAardvarkAddition

      public double getAardvarkAddition(double valueOne, int valueTwo)
      Custom Aardvark function - your class must use a unique function name unique first parameter identifier unique second parameter identifier do something creative
      Parameters:
      valueOne - double input
      valueTwo - int input
      Returns:
      double sum
    • run

      public void run()
      An instance of an Aardvark is now Runnable - call this run() method to see all the Aardvark tricks.
      Specified by:
      run in interface Runnable