Hi,
overriding methods must be same arguments but signature will be same type or subtype of the original type.
Ex:
class Base {
public Object lilly() {
return null;
}
}
public class Along extends Base {
public static void main(String argv[]) {
new Along().lilly();
}
public Integer lilly() {
new Zac();
return 1;
}
private class Zac {
Zac() {
System.out.println("zac");
}
}
}
The above rules applicable for only Tiger version....
Ravi