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 TypeMethodDescriptiondouble
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 creativevoid
move()
This is move method which is used to to print the message print the statementvoid
mul
(int a, int b) function mul gives multiplicationvoid
profess1()
function profess1 calls the getProngHornAddition methodvoid
speak()
This is speak method which is used to to print the message print the statementvoid
sub
(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
-