2011年11月19日

对象的生成过程

摘要: 好长时间没看java了,有些东西得复习一下。现在存在两个类Father和Child,如果我们new Child();或者new Child("李明");这个过程发生了什么?先看Father: 1 public class Father{ 2 static{ 3 System.out.println("Father_jingtaichushihuakuai"); 4 } 5 public static String static_str="Father_jingtaiziduan"; 6 { 7 ... 阅读全文

posted @ 2011-11-19 18:28 ibeen 阅读(383) 评论(0) 推荐(1)

导航