What happens if you try to instantiate an abstract class?单项选择题

A

The code will not compile, and a compilation error will occur.

B

You can instantiate an abstract class, but it will be treated as a regular class without any special behavior.

C

You can instantiate an abstract class, but it will throw an AbstractMethodError at runtime.

D

You can instantiate an abstract class without any issues.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!