Suppose you are given a class named ClockTime with the following contents:
// A ClockTime object represents an hour:minute time during
// the day or night, such as 10:45 AM or 6:27 PM.
public class ClockTime {
private int hour;
private int minute;
private String amPm;
// Constructs a new time for the given hour/minute
public ClockTime(int h, int m, String ap)
// returns the field values
public int getHour()
public int getMinute()
public String getAmPm()
// returns a String for this time; for example, "6:27 PM"
public String toString()
...
}