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

Java认证考试

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

package geometry;  public class Hypotenuse {  public InnerTriangle it = new InnerTriangle();  class InnerTriangle {  public int base;  public int height;  }  }  Which is true about the class of an object that can reference the variable base? ()

  • A、 It can be any class.
  • B、 No class has access to base.
  • C、 The class must belong to the geometry package.
  • D、 The class must be a subclass of the class Hypotenuse.
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题