Index of /~lucia/courses/ITI1121-15/labs/solutions/t03
Name Last modified Size Description
Parent Directory -
Time1.java 11-Jan-2015 16:44 4.4K
Time2.java 11-Jan-2015 16:44 4.5K
Utils1.java 11-Jan-2015 16:44 1.1K
Utils2.java 11-Jan-2015 16:44 1.1K
Quiz
Knowing that the instance variable timeInSeconds of the class Time2 has been declared to be private. The following implementation of the method equals, within the class Time2, is valid. True or False.
public boolean equals(Time2 other) {
return timeInSeconds == other.timeInSeconds;
}
Answer: Yes.