欢迎来到计算机考试题库网 计算机题库官网
logo
全部科目 > Java认证考试 > Java认证考试综合练习

单项选择题

有以下程序:

下面哪个方法加到程序中的“//insert code here”位置是有效的重定义父类的方法?()

    A.protected float getVar (){return x;}
    B.public float getVar(){return x;}
    C.protected float double getVar(){return x;}
    D.public float getVar(float f){return f;}

点击查看答案

相关考题

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

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