当前位置:百科知识 > 知到乐山乐水答案

问题描述:

[多选] 下列ABCDE注释标注的哪两行代码是错误的?class Tom {private int x = 120; protected int y = 20; int z = 11; private void f(){ x = 200; System.out.println(x); } void g(){ x = 200; System.out.println(x); }}public class A { public static void main(String args【】) { Tom tom = new Tom(); tom.x = 22; //A tom.y = 33; //B tom.z = 55; //C tom.f(); //D tom.g(); //E }}
A.A B.B C.C D.D E.E
参考答案:查看
答案解析:
☆收藏

随机题目