以下内容在同一个源程序中: interface A { int add(); } class B implements A { int x,y; B(int x,int y) { this.x=x; this.y=y; } int add() { return x+y; } } public class C { public static void main(String[] args) { B
A.程序输出b.x的值为0
B.程序输出b.y的值为0
C.程序输出的result的值为30
D.上述源程序编译不通过
- · 有3位网友选择 A,占比37.5%
- · 有3位网友选择 C,占比37.5%
- · 有1位网友选择 B,占比12.5%
- · 有1位网友选择 D,占比12.5%