My experience is that you should always strive to make accessors protected, so only subclasses can access the attributes.
我的经验是应该总是使读写方法受保护,所以只有子类可以访问其属性。
The depth of the game could be expanded to include avatar attributes such as experience and speed, missions to complete, inventory items to collect, and more worlds to explore.
更大的游戏可以扩大到包括化身属性,如经验和速度,以完成任务,库存物品收集,和更多的世界来探索。
I state this from experience, an auditor likes nothing better than a report detailing all the attributes you are required to produce, rather than ad-hoc screen shots.
根据我的经验,审计员愿意看到包含所需的所有属性的报告,而不是专门的屏幕图。
应用推荐