真坑!!!!作者: lwj123 时间: 2015-1-8 22:31
abstract class Fu { @Override public boolean equals(Object obj) { return false; } } class Zi extends Fu { } class Demo { public static void main(String[] args) { Fu f = new Zi(); System.out.println(f.equals(new Zi())); } } 这样就可以复写了作者: wx_hg1q2t6v 时间: 2015-1-9 00:14
lwj123 发表于 2015-1-8 22:31
abstract class Fu { @Override public boolean equals(Object obj) { return false; } } class Zi e ...