• 2022-06-07
    已定义类Aclass:class Aclass {private int x = 1;protected int y = 2;public int z = 3;public int sumA(){ return(x +y +z ); }}再通过继承与扩展定义子类Bclass:class Bclass extends Aclass {private
    A: s += b;
    B: s += x;
    C: s += z;
    D: s += y;