Package edu.nwmissouri.animalList
Class Buffalo
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Buffalo
- Author:
- Bhaskar Venkata Prudhvi Bobbala
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Buffalo()
void
diet()
* Override method for buffalo dietvoid
family()
* Override method for buffalo familydouble
getBuffaloAddition
(double morningMilkProduction, double eveningMilkProduction) void
lifespan()
* Override method for buffalo lifespanvoid
move()
* Override method for buffalo movevoid
speak()
* Override method for buffalo speak
-
Constructor Details
-
Buffalo
* Constructor for Buffalo- Parameters:
name
- - the name of this Buffalo
-
-
Method Details
-
speak
public void speak()* Override method for buffalo speak -
move
public void move()* Override method for buffalo move -
diet
public void diet()* Override method for buffalo diet -
family
public void family()* Override method for buffalo family -
lifespan
public void lifespan()* Override method for buffalo lifespan -
getBuffaloAddition
public double getBuffaloAddition(double morningMilkProduction, double eveningMilkProduction) - Parameters:
morningMilkProduction
- is of type doubleeveningMilkProduction
- is of type double- Returns:
- double value
-
Buffalo
public void Buffalo()
-