|
|||||||||
| 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.Clock24
public class Clock24
A Clock24 is a Clock that provides its hour in
24-hour format (0 to 23) instead of 12-hour format. The purpose is to show
how an extended class may override a method of the superclass.
Clock| Constructor Summary | |
|---|---|
Clock24()
|
|
| Method Summary | |
|---|---|
int |
getHour()
Get the current hour of this Clock24, in 24-hour format. |
| Methods inherited from class edu.colorado.simulations.Clock |
|---|
advance, earlier, getMinute, isMorning, setTime, someMorning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Clock24()
| Method Detail |
|---|
public int getHour()
Clock24, in 24-hour format.
getHour in class Clock- - none
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||