摘要:
class A{ public A(){ System.out.println("测试!!!!!!!!!!!"); }}class Demo19 extends A{ { x=7;//代码块初始化 System.out.println("hello world!测试代码块的执行顺序!AAAAAAAAAAA"); } public int x=1;//这里不会初始化变量值 只会声明变量 public int y=2;//这里不会初始化变量值 只会声明变量 public Demo19(){ //... 阅读全文
posted @ 2013-09-10 18:52
考虑到五岁的限制
阅读(735)
评论(0)
推荐(0)
摘要:
/* final class A{ public final void eat(){ System.out.println("测试"); } } */class A{ }class B extends A{ //测试 public void eat(){ System.out.println("不能重写父类的方法"); } static final double PI=3.1415926; public void test( final int x,int y){ //x=12; 这里是... 阅读全文
posted @ 2013-09-10 18:45
考虑到五岁的限制
阅读(455)
评论(2)
推荐(0)

浙公网安备 33010602011771号