Class Month

java.lang.Object
  extended byMonth
All Implemented Interfaces:
Serializable

public class Month
extends Object
implements Serializable

The Month class implements an object that keeps track of the month of the year.

Version:
9
See Also:
Serialized Form

Constructor Summary
Month()
          Month constructor constructs a Month object initialized to the current month and year.
 
Method Summary
static void main(String[] args)
          For unit testing.
 void next()
          Advance to next month.
 String toString()
          How a Month is displayed as a String - for example, "Jan, 2003".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Month

public Month()
Month constructor constructs a Month object initialized to the current month and year.

Method Detail

main

public static void main(String[] args)
For unit testing.


next

public void next()
Advance to next month.


toString

public String toString()
How a Month is displayed as a String - for example, "Jan, 2003".

Returns:
String representation of the month.