|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Acrobat
This class can be used to represent a member of the CSE 142 Acrobat community. In this simple implementation, such people have a name and a cumulative action count and they know how to twirl, clap, and count.
| Constructor Summary | |
Acrobat(java.lang.String given,
java.lang.String family)
Create a new Acrobat using the name information provided. |
|
| Method Summary | |
void |
clap(int k)
Clap as instructed. |
int |
getActionCount()
Tell the caller how many things we've done so far. |
java.lang.String |
getFamilyName()
Tell the caller what our family name is. |
java.lang.String |
getGivenName()
Tell the caller what our given name is. |
void |
twirl(int k)
Twirl around as instructed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Acrobat(java.lang.String given,
java.lang.String family)
given - the specific name of this personfamily - the surname or family name of this person| Method Detail |
public void twirl(int k)
k - the number of times to twirlpublic void clap(int k)
k - the number of times to clappublic int getActionCount()
public java.lang.String getGivenName()
public java.lang.String getFamilyName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||