public boolean equals(Object obj){ if(this==obj) return true; if(obj==null) return false; if(getClass()!=obj.getClass()) return false; Telephone other=(Telephone)obj; if(CPU!=other.CPU) return false; return true; }
Object類中的equals只能在有父類的時候才能使用嗎?為什么
weibo_快樂is魏帆_0
2015-08-27 08:36:40