|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--RungPerson
RungPerson is for testing with a "ring only" RingingPhone.
In this way the two classes are isolated so that only
the two need testing.
For 2 phone demo code for COM1204 OO Design Sp 2001
Constructor Summary | |
RungPerson()
|
Method Summary | |
void |
givePhone(RingingPhone phone)
|
static void |
main(java.lang.String[] args)
This is a very simple test, since it only needs to create a RingingPhone and a RungPerson and step them both. |
void |
step()
This listens for a ring, echoes what it hears and hangs up. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RungPerson()
Method Detail |
public static void main(java.lang.String[] args)
public void givePhone(RingingPhone phone)
public void step()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |