题目内容
(请给出正确答案)
[主观题]
以下代码,哪一行会报错 class Example { String str; public Example(){ str = "example"; } pub
以下代码,哪一行会报错 class Example { String str; public Example(){ str = "example"; } public Example(String s){ str = s; } } class Demo extends Example{ } public class Test{ public void f(){ Example ex = new Example("Good"); Demo d = new Demo("Good"); } }
A、行4
B、行8
C、行13
D、行17
E、行18
提问人:网友wuyongai0563
发布时间:2022-01-07