Package edu.nwmissouri.animalList
Class Gerenuk
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Gerenuk
Gerenuk class (derived subclass of the superclass Animal)
- Author:
- Tejaswini Challa
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getGerenukAddition
(double valueOne, int valueTwo) Custom Gerenuk 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
place()
void
profess()
void
size()
void
speak()
abstract speak() - has no implementation
-
Constructor Details
-
Gerenuk
Gerenuk constructor- Parameters:
name
- - the name of this Gerenuk
-
-
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 -
size
public void size() -
place
public void place() -
profess
public void profess() -
getGerenukAddition
public double getGerenukAddition(double valueOne, int valueTwo) Custom Gerenuk 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
-