为什么变量名通常以字母“M”开始?常以、字母、变量名

由网友(独唱情歌@)分享简介:纵观Android的教程,如记事本教程,我注意到,几乎所有变量命名开始以字母M。什么约定是这一点,并在它的起源?Looking at the Android tutorials such as the Notepad tutorial, I noticed that almost all variables are...

纵观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.

阅读全文

相关推荐

最新文章