Олимпиадный тренинг

Задача . 37370


Задача

Темы:
public class Time
{
private int hrs;
private int mins;
private int secs;
public Time()
{ /* implementation not shown */ }
public Time(int h, int m, int s)
{ /* implementation not shown */ }
/** Resets time to hrs = h, mins = m, secs = s. */
public void resetTime(int h, int m, int s)
{ /* implementation not shown */ }
/** Advances time by one second. */
public void increment()
{ /* implementation not shown */ }
/** @return true if this time equals t, false otherwise */
public bool equals(Time t)
{ /* implementation not shown */ }
/** @return true if this time is earlier than t, false otherwise */
public bool lessThan(Time t)
{ /* implementation not shown */ }
/** @return a String with the time in the form hrs:mins:secs */
public string toString()
{ /* implementation not shown */ }
}

Which of the following is a false statement about the methods?
(A) equals, lessThan, and toString are all accessor methods.
(B) increment is a mutator method.
(C) Time() is the default constructor.
(D) The Time class has three constructors.
(E) There are no static methods in this class.

time 1000 ms
memory 32 Mb
Правила оформления программ и список ошибок при автоматической проверке задач

Статистика успешных решений по компиляторам
Комментарий учителя