摘要: 因为子类是从父类继承来的,要先有父类对象的初始化才能进一步构造子类父类:package test;public class FatherClass{public FatherClass(){System.out.println("FatherClass Create");}}子类:package test;import test.FatherClass;public class ChildClass extends FatherClass{public ChildClass(){System.out.println("ChildClass Create" 阅读全文
posted @ 2013-12-11 10:01 一粟沧海 阅读(399) 评论(0) 推荐(0) 编辑