abstract class abstrctIt { abstract float getFloat (); } public class AbstractTest extends AbstractIt { private float f1= 1.0f; private float getFloat () {return f1;} } What is the result?()
- A、 Compilation is successful.
- B、 An error on line 6 causes a runtime failure.
- C、 An error at line 6 causes compilation to fail.
- D、 An error at line 2 causes compilation to fail.
正确答案:C
答案解析:有
微信扫一扫手机做题