- 博客(1)
- 收藏
- 关注
原创 父类继承使用及多个关键字使用
关键字 this 的使用 public class A{ private int n; public int get(){ return this.n; } } this代表当前对象的一个引用。 this只能在内部方法里面使用。另外同一个类里面调用另一个方法不需要使用this。 this不能使用在静态方法里,例如mian()。同理还有super关键字。 super相关使用 继承类知识 abstrat类的相关使用 伞兵 额外补充 foreach的使用 for(GeometricObje
2021-09-28 20:40:58 100
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人