码迷,mamicode.com
首页 > 移动开发 > 详细

Android:变量命名规则

时间:2016-08-20 16:24:01      阅读:365      评论:0      收藏:0      [点我收藏+]

标签:

参考:http://stackoverflow.com/questions/4237469/why-do-variable-names-often-start-with-the-letter-m

According to Google documentation:

  • Non-public, non-static field names start with m.
  • Static field names start with s.
  • Other fields start with a lower case letter.
  • Public static final fields (constants) are ALL_CAPS_WITH_UNDERSCORES.

Android:变量命名规则

标签:

原文地址:http://www.cnblogs.com/makebetter/p/5790562.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!