如题;
public class Foo { private String readwrite; // with getter and setter private String readonly; // with getter public String getReadwrite() { return readwrite; } public void setReadwrite(String readwrite) { this.readwrite = readwrite; } public String getReadonly() { return readonly; }
}
当我在其他类中调用Foo时,想给其readonly赋值,怎么办?
富国沪深
蓝山帝景
一只甜甜圈
冉冉说
扬帆大鱼
江户川乱折腾
幕布斯6054654
繁星点点滴滴
相关分类