属性property和字段的区别

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

原文地址:https://www.cnblogs.com/lijiahong/p/4444295.html