您的位置:首页 > 其它

政商

2016-04-08 13:51 190 查看
package Package;

public class j1 {
public static void main(String[] args){
B b=new B();
b.star();
}
}

class A{
String i;
A(){
i="11";
System.out.println(i);
System.out.println(this);
}
}
class B extends A{
String i;
B(){
i="22";
System.out.println(i);
}
void star(){
A a=new A();
this.i="2222";
super.i="11111";
System.out.println(this.i);
System.out.println(super.i);
System.out.println(super.equals(a));
System.out.println(super.hashCode());
//System.out.println(super);
System.out.println(this);
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: