我把第20行改了点,你看下,不过还是有问题
- class acc2
- {
- public acc2()
- {
- System.out.print("1");
- }
- }
- class acc1 extends acc2
- {
- public acc1()
- {
- System.out.print("2");
- }
- }
- public class acc extends acc1
- {
- public acc()
- {
- super(super());
- System.out.print("3");
- }
- public static void main(String argv[])
- {
- acc t=new acc();
- }
- }
复制代码 |
-
2.jpg
(12.2 KB, 下载次数: 28)
|