Index
All Classes and Interfaces|All Packages|Constant Field Values
C
- Chicken - Class in Unnamed Package
-
A Java class that represents a chicken.
- Chicken(int, double) - Constructor for class Chicken
-
Default name: "Bubba"; height and weight specified by parameters
- Chicken(String, int, double) - Constructor for class Chicken
-
Create a new Chicken object with the charactistics as specified by the parameters.
E
- equals(Object) - Method in class Chicken
-
Determines if the Object o is equivalent to this Chicken, based on their name, height, and weight.
- ERROR_TOLERANCE - Static variable in class Chicken
-
the amount of weight difference we are okay with
F
- FARM - Static variable in class Chicken
-
the name of the farm the chickens are on
- feed() - Method in class Chicken
-
Feeds the chicken, increasing the chicken's weight and height
G
- getHeight() - Method in class Chicken
-
Returns the chicken's height, in centimeters
- getName() - Method in class Chicken
-
Returns the chicken's name
- getWeight() - Method in class Chicken
-
Returns the chicken's weight, in pounds
M
- main(String[]) - Static method in class Chicken
-
Tests the Chicken class
S
- setHeight(int) - Method in class Chicken
-
Sets the height of the chicken, in cm
- setName(String) - Method in class Chicken
-
Sets the name of the chicken
- setWeight(double) - Method in class Chicken
-
Sets the weight of the chicken, in pounds
T
- toString() - Method in class Chicken
-
Returns a string representation of the chicken.
All Classes and Interfaces|All Packages|Constant Field Values