//不知道说的对不对,我就比猫画虎了!
public class 某某
private String name;
private int age;
public 某某 (){}
public 某某(String name ,int age) {
this.name=name;
this.age=age;}
public String getName(){
return name;}
public void setName(){
this.name=name;}
public int getAge(){
return age;
}
public void setAge(int age){
this.age=age;
}
///后面再来个改写
@override
public int hashCode(){
return 0; |
|