super的应用
文件大小: 20k
源码售价: 10 个金币 积分规则     积分充值
资源说明:package zoology; public class Exercises6_1 extends TT { public Exercises6_1(String s) { super(s); System.out.println("How do you do?"); } public Exercises6_1() { this("I am Tom"); } } package zoology; public class main { public static void main(String args[]) { Exercises6_1 t = new Exercises6_1("tom"); } } package zoology; public class TT { public TT() { System.out.println("What a pleasure!"); } public TT(String s) { this(); System.out.println("I am " + s+s); } }
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。