android 类的get及set方法的快速添加

来源:互联网 发布:公司域名邮箱 编辑:程序博客网 时间:2024/05/21 09:05

android开发中,有些工具或功能类需要对其成员变量添加get和set方法:

在Eclipse环境中,右键----source--Generate Getters and Setters .

类似的,添加构造方法:右键--source---Generate Constructor using Fields

0 0
原创粉丝点击