欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

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.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题