- 博客(1)
- 收藏
- 关注
原创 类里面创建的新类,无法在类内创建对象?
public class Practice7_1 { class test{ private int x; test(int i){x = i;} int getX(){return this.x;} } public static void main(String[] args){ test t1 = new test(5);//报错:没有任何类型 Practice7_
2016-09-05 21:24:09
980
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人