Class Time

java.lang.Object
  |
  +--Time

public class Time
extends java.lang.Object

Copyright (c) Amish Parkh November 2001 Time.java: The Time class includes the private variable for representing the time. The Time class includes basic methods: getTime, setTime


Constructor Summary
Time()
          default constructor
Time(double t)
          constructor to initailize the time with t
 
Method Summary
 double getTime()
          get current time
 void setTime(double t)
          set current time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Time

public Time()
default constructor

Time

public Time(double t)
constructor to initailize the time with t
Method Detail

setTime

public void setTime(double t)
set current time

getTime

public double getTime()
get current time