There is a public field. Make it private and provide accessors. 转载于:https://www.cnblogs.com/nanshouyong326/archive/2007/05/15/747383.html