在下列源代码文件Test. java中,正确定义类的代码是( )。
A. pblic class test { public int x=0; public test(int {thi x=x;} }
B. public class Test { public int x=0; public Test(int {thi x=x;} }
C. public class Test extends T1,T2{ public int x = 0; public Test(int { thi x = x; }}
D. protected class Test extends T2{ public int x = 0; public Test(int {thi x = x; } }
查看答案
该试题由用户703****69提供
查看答案人数:2869
如遇到问题请联系客服
正确答案
该试题由用户703****69提供
查看答案人数:2870
如遇到问题请联系客服