package tests;

/**
 * A Time object has an hour, minute, and indicator for am or pm.
 */
public abstract class Time {
    Hour hour;
    Minute minute;
    AMorPM amORpm;
}

/**
 * Represents the hour portion of time display.
 */
abstract class Hour {
    int value;   // Must be legal hour value
}

/**
 * Represents the minute portion of time display.
 */
abstract class Minute {
    int value;   // Must be legal minute value
}

/**
 * Enum to represent AM or PM of time display.
 */
enum AMorPM { AM, PM }