Make Object Properties Private

私有变量gear,通过对象名.属性的方式不能访问,通过setGear方法访问。

 

posted @ 2016-07-27 15:31  昵称咋这么难起  阅读(685)  评论(0)    收藏  举报