class V{
private int a;
V(int a){
rhis a=a;
}
public boolean equals(int a,int b){
if(this.a equals(b.a)){//this.a中的this 谁在主函数中调用它,谁就是this 当前对象的引用嘛
return true;
}else {
return flase;
}
}
}
public class test{
public static void main(String[] args){
V v1=new V(10);
V v2=new V(10);
Sytsem.out.println(v1.equals(v2));
}
}