修訂賦值函數方法定義的編寫賦值函數方法
寫賦值函數方法setAge(),它int類型的單個參數,並將 可變時代的價值在這裏你的答案貼:
public int setAge(int age)
{
return age;
}
評論:
* Test 1 (0.0 out of 1)
The compilation was successful
The output should have been:
setAge() Correct
This is what was actually produced:
setAge() not Correct
困惑,爲什麼我得到這個錯誤,是不是因爲我setAge後有(INT年齡),這就是爲什麼錯誤了正在添加?
雖然我們不能確定該字段的名稱實際上是「年齡」 – 2009-10-28 21:58:53
完美地工作,謝謝 – Tical 2009-10-28 21:59:23