属性property和字段的区别

在类中定义的一个成员变量叫字段,要把这个成员变量变成一个属性必须加上getter和setter方法

posted @ 2015-04-21 14:40  加洲旅馆2012  阅读(114)  评论(0编辑  收藏  举报
hello