private int a;
public int getA() {
return a;
}
public void setA(int a) {
this.a = a;
}
权限修饰 变量返回类型 get+大写变量名(){
有返回值
return 变量;
}
权限修饰 Void set+大写变量名(变量类型 变量){
this.变量 = 变量;
}
private int a;
public int getA() {
return a;
}
public void setA(int a) {
this.a = a;
}
权限修饰 变量返回类型 get+大写变量名(){
有返回值
return 变量;
}
权限修饰 Void set+大写变量名(变量类型 变量){
this.变量 = 变量;
}