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
答案解析:有

微信扫一扫手机做题