• 2022-06-06
    给出下面的代码段 public class Base{ int x, y; static int z; public Base(int a,int b)
    { x=a; y=b; } } 以下代码错误的是?().
    A: Base b=new Base();
    b.z=10;
    B: Base b=new Base(1,2);
    b.z=10;
    C: Base.z=10;
    D: Base b=new Base(1,2);
    b.x=2;