class Super { public Integer getLenght( ) { return new Integer(4); } } public class Sub extends Super { public Long getLenght( ) { return new Long(5); } public static void main(String[] args) { Super sooper = new Super( ); Sub sub = new Sub( ); System.out.println(sooper.getLenght( ).toString( ) + "," + sub.getLenght( ).toString( ) ); } } 输出是什么?
发布于 2020-12-25 16:57:41
关注者
0
被浏览
377