Index of /~lucia/courses/ITI1121-15/labs/solutions/t03

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [TXT] Time2.java 2015-01-11 16:44 4.5K [TXT] Time1.java 2015-01-11 16:44 4.4K [TXT] Utils2.java 2015-01-11 16:44 1.1K [TXT] 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.