编译运行如下Java代码,输出结果是Class Base{
Public void method(){
System.out.prin(“Base method”);}}
Class Child extends Base{
Public void method(){
System.out.,print(“Child method”);}}
Class Sample{
Public stataic void main(String[] args){
Base base = new Child();
base.method();}}
发布于 2021-04-25 15:43:40
【单选题】 A Base method B B Child method C C Base method Child Method D D 编译错误