为什么变量名通常以字母“M”开始? [英] Why do variable names often start with the letter 'm'?

查看:267
本文介绍了为什么变量名通常以字母“M”开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

纵观Android的教程,如记事本教程,我注意到,几乎所有变量命名开始以字母M。什么约定是这一点,并在它的起源?

Looking at the Android tutorials such as the Notepad tutorial, I noticed that almost all variables are named starting with the letter 'm'. What convention is this, and where does it originate from?

推荐答案

它代表成员。我个人觉得这个惯例无益的,但它是主观的。

It stands for member. I personally find this convention unhelpful, but it's subjective.

这篇关于为什么变量名通常以字母“M”开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆