Given the following fragment of code: public class Base{ int w, x, y ,z; public Base(int a,int b){ x=a; y=b; } public Base(int a, int b, int c, int d){ // assignment x=a, y=b w=d; z=c; } } Which expressions can be used at the point of // assignment x=a, y=b? A : Base(a,b);
B : x=a, y=b;
C : x=a; y=b;
D : this(a,b);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货