單項(xiàng)選擇題

閱讀下面的程序,分析代碼是否能夠編譯通過,如果能編譯通過,請(qǐng)列出運(yùn)行的結(jié)果,否則請(qǐng)說明編譯失敗的原因。 public class Demo { public static void main(String[] args) { Father f=new Son(); f.show(); } } class Father{ public void show(){ System.out.print("father show"); } } class Son extends Father{ public void show(){ super.show(); System.out.print("son show"); } }

A.show();
B.out.print("father
C.show();
D.out.print("son
題目列表

你可能感興趣的試題

問答題

簡(jiǎn)述景觀心理文化作用下景觀感受的時(shí)空轉(zhuǎn)換理論。

答案: 景觀心理文化作用下景觀感受的時(shí)空轉(zhuǎn)換理論,是指人們?cè)隗w驗(yàn)景觀時(shí),其心理和文化背景會(huì)影響他們對(duì)景觀的感知和理解,進(jìn)而產(chǎn)生時(shí)...
微信掃碼免費(fèi)搜題