标签:
非公有的变量前面要加上小写m,
静态变量前面加上小写s,
其它变量以小写字母开头,
静态变量全大写
例子
public class MyClass { public static final int SOME_CONSTANT = 42; public int publicField; private static MyClass sSingleton; int mPackagePrivate; private int mPrivate; protected int mProtected; }
截取自http://blog.csdn.net/ameryzhu/article/details/12236215,感谢原作者,侵删
标签:
原文地址:http://www.cnblogs.com/librasun/p/5753177.html