万能百科  > 计算机   > 

[填空题] 请写出下面程序的运行结果: public class Test extends TT public static void main(Str

2021-07-20   

[填空题] 请写出下面程序的运行结果:

public class Test extends TT

public static void main(String args[])(

Test t=new Test("Tom.");

public Test(SUing s)

super(s);

System.out.print("How are you");

public Test()

this("I am Jack.");

class TT

public TT()

System,out.print("Hi!");

public TT(String s)

this();

System.out.print("I am"+s);

结果: 【15】

正确答案:

Hi!Iam Tom.How are you

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签