單項(xiàng)選擇題

class Super { 
public int getLenght() { return 4; } 
} 
public class Sub extends Super { 
public long getLenght() { return 5; } 
public static void main(String[] args) { 
Super sooper = new Super(); 
Sub sub = new Sub(); 
System.out.println( 
sooper.getLenght() + “,” + sub.getLenght() ); 
} 
}
What is the output?()

A. Just after line 13.
B. Just after line 14.
C. Just after line 15.
D. Just after line 16 (that is, as the method returns).

題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題