无法自动生产equals方法,请问应该怎么解决?
package com.imooc;
public class Dog extends animal {
public void eat(){
System.out.println("年龄"+age+name+"狗具有吃东西的能力");
}
public Dog(){
System.out.println("Dog类执行了");
}
}
package com.imooc;
public class Dog extends animal {
public void eat(){
System.out.println("年龄"+age+name+"狗具有吃东西的能力");
}
public Dog(){
System.out.println("Dog类执行了");
}
}
2015-09-27
举报