public class Clucker
extends java.lang.Object
Constructor and Description |
---|
Clucker()
This is a constructor that creates a new Clucker object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
cluck()
This method increases the number of chickens in the *house by one.
|
long |
getCount()
This method will tell you the current attendance of the *house
|
void |
multicluck(int n)
This method increases the number of chickens in the *house by n.
|
void |
reset()
This method kicks all the chickens out of the *house
|
public Clucker()
public java.lang.String cluck()
public void multicluck(int n)
n,
- The number of chickens that entered the *housepublic void reset()
public long getCount()