IC211 Spring AY 2020
Name (Last, First): ____________________________________________________ Alpha: _____________________
Describe help received: _________________________________________________________________
public class Foo {
double x;
String s;
public static String disp() {
return "[" + s + "," + x + "]";
}
}
public class Time {
int hh, mm, ss;
public boolean equal(Time t) { ... }
public static boolean equal(Time t1, Time t2) { ... }
}
Assume code in some other method of class Foo defines A and B as:
Time A = new Time(), B = new Time();
public boolean equal(Time t) {
}
public static boolean equal(Time t1, Time t2) {
}
A.isBefore(B)