qw7252330
qw7252330
关注数: 1
粉丝数: 54
发帖数: 42
关注贴吧数: 48
求大神解答 窗口上的标题怎么向左啊 求解答
帮我看下这段代码 public class Java_3_01 { public static void main(String[] srgs){ B b=new B(200); B b2=new B(200); System.out.println(b.equals(b2)); C j=new C(20); C j2=new C(20); System.out.println(j.equals(j2)); } } class B{ private int i; B(int i){ this.i=i; } public boolean equals(B b2){ if(this.i==b2.i){ return true; }else{ return false; } } } class C extends B{ private int j; C(int j){ super(j);//这里为什么要加一个j this.j=j; } public boolean equals(B b2){ C c=(C)b2; if(this.j==c.j){ return true; }else{ return false; } } }
蕲春实验的来 蕲春实验 QQ群:259839090
1
下一页