|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Friend
class Friend
Alphonse and Gaston are friends.
Field Summary | |
---|---|
(package private) Friend |
myFriend
My friend |
Constructor Summary | |
---|---|
Friend(String name)
Constructor. |
Method Summary | |
---|---|
void |
bowBack(Friend bower)
Bow back to a friend. |
String |
getName()
Get the name. |
void |
run()
Bow to a friend and later bow back. |
(package private) void |
setFriend(Friend other)
Make friends. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Friend myFriend
Constructor Detail |
---|
public Friend(String name)
Method Detail |
---|
public String getName()
void setFriend(Friend other)
public void run()
run
in interface Runnable
public void bowBack(Friend bower)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |