下列程序的输出结果是( )。
classA{
int i,j;
A(int i,int j)
{ this.i=i;
this.j=j;
}
void print( )
{ System.out.println("i="+i+""+"j="+j)
}
class B extends A{
int in;
B (int i,int j,int m){
super(a,B) ;
this.m=m;
}
void print( )
{ Sytem.out.println("m+"+m);}
}
class C {
public static void main (strang argsⅡ)
{ B b:new B(1,2,3);
b.print( );
}
}
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 17:36:01
免费下载:《单选题》Word试卷
下列程序的输出结果是( )。
classA{
int i,j;
A(int i,int j)
{ this.i=i;
this.j=j;
}
void print( )
{ System.out.println("i="+i+""+"j="+j)
}
class B extends A{
int in;
B (int i,int j,int m){
super(a,B) ;
this.m=m;
}
void print( )
{ Sytem.out.println("m+"+m);}
}
class C {
public static void main (strang argsⅡ)
{ B b:new B(1,2,3);
b.print( );
}
}
A.ClassNotFoundException
B.IOException
C.FileNotFoundException
D.UnknownHostException
本题关键词:输出结果,出院病案排列顺序,竣工结算程序,结果,序列关系,空间序列,肝糖输出,输出浓度,程序,结果均;