- 博客(1)
- 收藏
- 关注
原创 简单理解两个关键字
this和static this 1.对当前对象的引用,this后有个点 列如: public int get age(){ return this.age; } System.out.println(t1.get age()); 2.调用当前类的其他构造方法 public void st(){ this.set age(10000); } System.out.println(t2.get ...
2018-10-17 20:55:09
176
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人