关于this this()

关于this this的第一个做用:区分局部变量和成员变量 this的第二个做用:指代对象自己 方法的调用必须经过对象才能进行 public class Point { private int row; private int col; public void setRow(int row) { if(row<=0 || row>25) { row=1; } this
相关文章
相关标签/搜索