【发布时间】:2014-03-09 20:54:30
【问题描述】:
我刚开始使用greenfoot,正在研究一些例子,发现人们经常使用“this”,它到底是什么意思,我不太明白,例如:
//set the animal's age
public void setAge(int age)
{
this.age = age;
}
【问题讨论】:
-
来吧,只要在 Google 或 SO 中搜索“this”即可。
-
我做了,但我想我会在这里得到更好的解释。