随笔-10  评论-3  文章-0  trackbacks-0

1. Always keep data private.


2. Always initialize data.

3.
Don't use too many basic types in a class.

4.
Not all fields need individual field accessors and mutators.

5.
Use a standard form for class definitions.

6. Break up classes with too many responsibilities.


7. Make the names of your classes and methods reflect their responsibilities.
posted on 2010-12-10 13:41 li40204 阅读(157) 评论(0)  编辑  收藏 所属分类: Java

只有注册用户登录后才能发表评论。


网站导航: