试题详情
多项选择题 1. public class OuterClass {  2. private double d1 = 1.0;  3. // insert code here  4. }  Which two are valid if inserted at line 3?()  

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
  • 关注下方微信公众号,在线模考后查看

热门试题