Package edu.nwmissouri.animalList
Class ProngHorn
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.ProngHorn
This is ProngHorn animal class.(derived subclass of the superclass Animal)
- Author:
 - Alekhya Gandra
 
- 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoublegetProngHornAddition(double valueOne, int valueTwo) Custom ProngHorn function - your class must use a unique function name unique first parameter identifier unique second parameter identifier do something creativevoidmove()This is move method which is used to to print the message print the statementvoidmul(int a, int b) function mul gives multiplicationvoidprofess1()function profess1 calls the getProngHornAddition methodvoidspeak()This is speak method which is used to to print the message print the statementvoidsub(int a, int b) function sub gives subtarction 
- 
Constructor Details
- 
ProngHorn
 
 - 
 - 
Method Details
- 
speak
public void speak()This is speak method which is used to to print the message print the statement - 
move
public void move()This is move method which is used to to print the message print the statement - 
mul
public void mul(int a, int b) function mul gives multiplication- Parameters:
 a-b-
 - 
sub
public void sub(int a, int b) function sub gives subtarction- Parameters:
 a-b-
 - 
getProngHornAddition
public double getProngHornAddition(double valueOne, int valueTwo) Custom ProngHorn 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
 
 - 
profess1
public void profess1()function profess1 calls the getProngHornAddition method 
 -