多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

现有:  1. abstract class Color2  {      2.    //insert code here      3.  }      4.  5. public class Blue2 extends Color2  {  6.public  String getRGB()  {  return  "blue";  }      7.  }  和4个声明:  public abstract  String getRGB();     abstract  String getRGB();  private abstract  String getRGB();      protected abstract String getRGB();  分别插入到第2行,有多少行可以编译?()     

  • A、  0
  • B、  1
  • C、  2
  • D、  3
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题