编译运行如下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 14:13:59
【单选题】 A Base method B Child method C Base method Child Method D 编译错误