Package edu.nwmissouri.animalList
Class Stag
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Stag
This is the Stag class which extends Animal
- Author:
- Rahul Konda
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Stag
Stag Constructor- Parameters:
name
- - the name of this Stag
-
-
Method Details
-
eat
public void eat() -
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 -
color
public void color() -
access
public void access()method for addition -
getStagAddition
public double getStagAddition(double valueOne, int valueTwo) - Parameters:
valueOne
-valueTwo
-- Returns:
-