(急)一道简单JAVA基础题的答案(在线等)

日期:2017-11-26 20:26:38 人气:1

(急)一道简单JAVA基础题的答案(在线等)

子类重写父类方法,返回类型必须一致 !~!! class Super { public Integer getLenght() { return new Integer(4); } } public class Sub extends Super { public Integer getLenght() { return new Integer(5); } public static void main(String[] args) { Super sooper = new
    A+
热门评论