![](https://cos-cdn.shuashuati.com/pipixue-wap/2020-1230-1107-56/ti_inject-812ce.png)
阅读程序写结果 class Father { void sport() { System.out.print("打篮球!"); } } class Son extends Father { void sport() { System.out.print("踢足球!"); } } public class Test { public static void main(String[] args) { Father father = new Father(); Son son = new Son(); father.sport(); son.sport(); } }