重写set方法时,要用set

来源:互联网 发布:杭州东站到淘宝城 编辑:程序博客网 时间:2024/06/05 14:43
重写set方法时,一定不要用setter+属性名,而是set+属性名。切记!!!否则不能正确调用set方法。
0 0
原创粉丝点击