欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > Java认证考试综合练习

单项选择题

现有: 
1.class SuperFoo{ 
2.SuperFoo doStuff (int x)  {     
3.return new SuperFoo();     
4.    }     
5.  }     
6. 
7. class Foo extends SuperFoo  {    
8.    //insert code here    
9.  } 
和四个声明:  
Foo doStuff (int x)  {  return new Foo();  } 
Foo doStuff (int x)  {  return new SuperFoo();  }     
SuperFoo doStuff(int x)  {  return new Foo();  } 
SuperFoo doStuff(int y)  {  return new SuperFoo();  }   
分别插入到第8行,有几个可以通过编泽?()    

    A. 1
    B. 2
    C. 3
    D. 4

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题