试题详情
单项选择题 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
  • 关注下方微信公众号,在线模考后查看

热门试题