Index of /~lucia/courses/ITI1121-15/labs/solutions/t03
Name Last modified Size Description
Parent Directory -
Time2.java 2015-01-11 16:44 4.5K
Time1.java 2015-01-11 16:44 4.4K
Utils2.java 2015-01-11 16:44 1.1K
Utils1.java 2015-01-11 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.