java技术博客

jsp博客
<2008年10月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

统计

  • 随笔 - 84
  • 文章 - 1
  • 评论 - 2
  • 引用 - 0

常用链接

留言簿(3)

随笔分类

随笔档案

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜

ConstructorTest
/**
*测试类构造器的调用顺序
*/
public class ConstructorTest{
public static void main(String[] args){
C c=new C("hello");
}
}
class A{
public A(){
System.out.println("this is A");
}
}
class C extends B{
public C(String str){
super(str);
System.out.println("this is C");
}
}

posted on 2008-10-22 13:49 郭兴华 阅读(141) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: