Package edu.nwmissouri.animalList
Class Cheetah
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Cheetah
Cheetah class (derived subclass of the superclass Animal)
- Author:
- Srilekha Janagam
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
diet()
double
getCheetahAddition
(double valueOne, int valueTwo) Custom Cheetah function - your class must use a unique function name unique first parameter identifier unique second parameter identifier do something creativevoid
move()
abstract move() - has no implementationvoid
profess()
void
speak()
abstract speak() - has no implementation
-
Constructor Details
-
Cheetah
Cheetah constructor- Parameters:
name
- - the name of this Cheetah
-
-
Method Details
-
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 -
diet
public void diet() -
profess
public void profess() -
getCheetahAddition
public double getCheetahAddition(double valueOne, int valueTwo) Custom Cheetah 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
-