Package edu.nwmissouri.animalList
Class Lion
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Lion
Lion class (derived subclass of the superclass Animal)
- Author:
- Nikhil KrishnanVenkatesh
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getLionAddition
(double valueOne, int valueTwo) Custom Lion 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 implementationvoid
speed()
-
Constructor Details
-
Lion
-
-
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 -
speed
public void speed() -
profess
public void profess() -
getLionAddition
public double getLionAddition(double valueOne, int valueTwo) Custom Lion 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
-