试题详情
多项选择题 public class OuterClass {  private double d1  1.0;  //insert code here   }   You need to insert an inner class declaration at line2. Which two inner class declarations are valid?() 

A、 static class InnerOne {  public double methoda() {return d1;}  }

B、 static class InnerOne {  static double methoda() {return d1;} }

C、 private class InnerOne {  public double methoda() {return d1;} }

D、 protected class InnerOne {  static double methoda() {return d1;} }

E、 public abstract class InnerOne {  public abstract double methoda();  }

  • C,E
  • 关注下方微信公众号,在线模考后查看

热门试题