What is the result?()
- A、Compilation fails because of an error in line 3.
- B、Compilation fails because of an error in line 7.
- C、Compilation fails because of an error in line 9.
- D、If you define D e = new E(),then e.bMethod() invokes the version of bMethod() defined in Line 5.
- E、If you define D e = (D)(new E()),then e.bMethod() invokes the version of bMethod() defined in Line 5.
- F、If you define D e = (D)(new E()),then e.bMethod() invokes the version of bMethod() defined in Line 9.
正确答案:F
答案解析:有
微信扫一扫手机做题