S2:Class

A class is a structure that define an object in S2.

A lot like an encyclopedia article for each object that you can play with.

It contains the basic parts of each object and the abilities that each object has.

One of the simplest classes is the Date class.

There are 3 parts to a Date.
 * The number of the day (ranging from 1 to 31)
 * The number of the month (ranging from 1 to 12)
 * The 4-digit year.

There are 4 abilities that Dates have.
 * A date can be compared to another date to see if they are the same time, if the first is before the second, or if the first is after the second.
 * The default text format of a date
 * A custom text format of a date
 * The day of the week that a date falls on