Package edu.nwmissouri.animalList
Class Aardvark
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Aardvark
- All Implemented Interfaces:
Runnable
Aardvark class (derived subclass of the superclass Animal)
- Author:
- Dr. Case
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
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 creativeint
getAge()
double
boolean
void
move()
abstract move() - has no implementationvoid
profess()
void
run()
An instance of an Aardvark is now Runnable - call this run() method to see all the Aardvark tricks.void
setAge
(int age) void
setIsAlive
(boolean isAlive) void
setWeight_pounds
(double weight_pounds) void
speak()
abstract speak() - has no implementationtoString()
-
Constructor Details
-
Aardvark
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
-
speak
public void speak()Description copied from class:Animal
abstract speak() - has no implementation -
move
public void move()Description copied from class:Animal
abstract move() - has no implementation -
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 inputvalueTwo
- 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.
-