JAVA技巧:Eclipse->Source

Override/lmplement Methods

作用:
快速重写父类函数
即:自动生成父类某函数
直接输入,父类变量名,Alt+/,更快

Select getters and setters to create

作用:
快速创建get set函数
即:自动生成

public int getX() {
	return x;
}
public void setX(int x) {
	this.x = x;
}


public int getY() {
	return y;
}
public void setY(int y) {
	this.y = y;
}

posted @ 2021-10-08 15:03  kingwzun  阅读(84)  评论(0编辑  收藏  举报