政商
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); } }
相关文章推荐
- HBase配置优化
- HttpClient 教程 (六)
- ( >o< )瞎!你还在用weinre?Browsersync来了!
- Sublime Text 无法使用Package Control或插件安装失败的解决方法
- Android EditText的设置
- 正念的奇迹 - 喧嚣的世界中获取安宁
- mybatis n+1问题
- js 的 call 与 apply
- tomcat 监听地址
- 【笔记】 《js权威指南》- 第16章 脚本化CSS 16.3 脚本化内联样式 - 16.4 查询计算出的样式
- HttpClient 教程 (五)
- HttpClient 教程 (四)
- BlockingQueue接口及实现类分析
- 你可能不知道的51个Linux经典命令!
- 第四次作业 结对编程-黄金点游戏
- WAY STUDIO 依路 舵机机器人 动作开发环境入门
- Nginx 301重定向的配置
- HDU - 5256 序列变换 (LIS转化)
- 【二位费用背包】HDU2159FATE
- 输入一个非负整数,返回组成它的数字之和