|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.colorado.simulations.Clock
edu.colorado.simulations.CuckooClock
public class CuckooClock
A CuckooClock is a Clock that cuckoos when the
minute is zero. The primary purpose of this class is to demonstrate how an
extended class is implemented.
Clock| Constructor Summary | |
|---|---|
CuckooClock()
|
|
| Method Summary | |
|---|---|
boolean |
isCuckooing()
Check whether this CuckooClock is currently cuckooing. |
| Methods inherited from class edu.colorado.simulations.Clock |
|---|
advance, earlier, getHour, getMinute, isMorning, setTime, someMorning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CuckooClock()
| Method Detail |
|---|
public boolean isCuckooing()
CuckooClock is currently cuckooing.
- - none
CuckooClock's current minute is zero, then the
return value is true; otherwise the return value is
false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||