已知类Base、Derived的定义如下: 则下列语句段在控制台中的输出结果是() Derived x=new Derived(); x.Hello();
- A、 Hello in Base!
- B、 Hello in Base! Hello in Derived!
- C、 Hello in Derived!
- D、 Hello in Derived!Hello in Base!
正确答案:C
答案解析:有
微信扫一扫手机做题
已知类Base、Derived的定义如下: 则下列语句段在控制台中的输出结果是() Derived x=new Derived(); x.Hello();
微信扫一扫手机做题