类变量命名:
命名规范:变量名首字母必须小写,如果该变量名有多个单词组成,后面的单 词首字母大写,单词与单词之间不要使用"_"做连接,变量名访问控制必须为私有, 可以对其增加setter与getter方法。
例如:private int studentAge;
public int getStudentAge()
{
return studentAge;
}
public void setStudentAge(int studentAge)
{
this.studentAge=studentAge;
}
全文:http://www.examda.com/Java/jichu/20090110/100833187.html
必须掌握Java命名规范:http://book.51cto.com/art/200903/112298.htm

被折叠的 条评论
为什么被折叠?



